mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-15 21:50:14 +02:00
Fix dimension for 1.19
This commit is contained in:
parent
226fd32c6d
commit
32ea23591f
@ -87,6 +87,12 @@ public final class LimboConfig {
|
|||||||
maxPlayers = conf.node("maxPlayers").getInt();
|
maxPlayers = conf.node("maxPlayers").getInt();
|
||||||
pingData = conf.node("ping").get(PingData.class);
|
pingData = conf.node("ping").get(PingData.class);
|
||||||
dimensionType = conf.node("dimension").getString();
|
dimensionType = conf.node("dimension").getString();
|
||||||
|
if (dimensionType.equalsIgnoreCase("nether")) {
|
||||||
|
dimensionType = "the_nether";
|
||||||
|
}
|
||||||
|
if (dimensionType.equalsIgnoreCase("end")) {
|
||||||
|
dimensionType = "the_end";
|
||||||
|
}
|
||||||
spawnPosition = conf.node("spawnPosition").get(Location.class);
|
spawnPosition = conf.node("spawnPosition").get(Location.class);
|
||||||
gameMode = conf.node("gameMode").getInt();
|
gameMode = conf.node("gameMode").getInt();
|
||||||
useBrandName = conf.node("brandName", "enable").getBoolean();
|
useBrandName = conf.node("brandName", "enable").getBoolean();
|
||||||
|
@ -74,8 +74,9 @@ public final class PacketSnapshots {
|
|||||||
joinGame.setReducedDebugInfo(true);
|
joinGame.setReducedDebugInfo(true);
|
||||||
joinGame.setDebug(false);
|
joinGame.setDebug(false);
|
||||||
joinGame.setViewDistance(0);
|
joinGame.setViewDistance(0);
|
||||||
joinGame.setWorldName("minecraft:overworld");
|
String worldName = "minecraft:" + server.getConfig().getDimensionType().toLowerCase();
|
||||||
joinGame.setWorldNames("minecraft:overworld");
|
joinGame.setWorldName(worldName);
|
||||||
|
joinGame.setWorldNames(worldName);
|
||||||
joinGame.setHashedSeed(0);
|
joinGame.setHashedSeed(0);
|
||||||
joinGame.setDimensionRegistry(server.getDimensionRegistry());
|
joinGame.setDimensionRegistry(server.getDimensionRegistry());
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ public final class DimensionRegistry {
|
|||||||
switch (def.toLowerCase()) {
|
switch (def.toLowerCase()) {
|
||||||
case "overworld":
|
case "overworld":
|
||||||
return new Dimension(0, "minecraft:overworld", overWorld);
|
return new Dimension(0, "minecraft:overworld", overWorld);
|
||||||
case "nether":
|
case "the_nether":
|
||||||
return new Dimension(-1, "minecraft:nether", nether);
|
return new Dimension(-1, "minecraft:nether", nether);
|
||||||
case "the_end":
|
case "the_end":
|
||||||
return new Dimension(1, "minecraft:the_end", theEnd);
|
return new Dimension(1, "minecraft:the_end", theEnd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user