fix(wrapper): 1.20

This commit is contained in:
ineanto 2024-08-26 22:39:39 +02:00
parent 23f9424fa9
commit df988dbf87
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84

View file

@ -38,7 +38,7 @@ public class WrapperPlayServerRespawn extends AbstractPacket {
final MinecraftVersion v1_20_5 = new MinecraftVersion(1, 20, 5); final MinecraftVersion v1_20_5 = new MinecraftVersion(1, 20, 5);
if (!MinecraftVersion.getCurrentVersion().isAtLeast(v1_20_5)) { if (!MinecraftVersion.getCurrentVersion().isAtLeast(v1_20_5)) {
// 1.20.1 - 1.20.4 // 1.20 - 1.20.4
final StructureModifier<InternalStructure> structureModifier = spawnInfoStructure == null ? final StructureModifier<InternalStructure> structureModifier = spawnInfoStructure == null ?
handle.getStructures() : spawnInfoStructure.getStructures(); handle.getStructures() : spawnInfoStructure.getStructures();