refactor(note): i'm dumb

This commit is contained in:
ineanto 2023-11-24 23:22:14 +01:00
parent b673a6409f
commit 25e3893771

View file

@ -57,7 +57,7 @@ public class WrapperPlayServerRespawn extends AbstractPacket {
commonPlayerSpawnInfoStructure.getStructures().write(0, dimensionType); commonPlayerSpawnInfoStructure.getStructures().write(0, dimensionType);
commonPlayerSpawnInfoStructure.getWorldKeys().write(0, value); commonPlayerSpawnInfoStructure.getWorldKeys().write(0, value);
} else if (MinecraftVersion.WILD_UPDATE.atOrAbove()) { } else if (MinecraftVersion.WILD_UPDATE.atOrAbove()) {
// 1.19 to 1.20.2 // 1.19 to 1.20.1
// Thank you lukalt! // Thank you lukalt!
final InternalStructure dimensionType = handle.getStructures().read(0); final InternalStructure dimensionType = handle.getStructures().read(0);
dimensionType.getMinecraftKeys().write(0, new MinecraftKey("minecraft", "dimension_type")); dimensionType.getMinecraftKeys().write(0, new MinecraftKey("minecraft", "dimension_type"));