Fix effects value

This commit is contained in:
KennyTV 2020-08-10 22:03:05 +02:00
parent b9317df859
commit e325a03c0a
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -84,8 +84,9 @@ public class EntityPackets1_16_2 extends EntityRewriter<Protocol1_16_1To1_16_2>
}
private String getDimensionFromData(CompoundTag dimensionData) {
// This may technically break other custom dimension settings for 1.16/1.16.1 clients, so those cases are considered semi "unsupported" here
StringTag effectsLocation = dimensionData.get("effects");
return effectsLocation != null && oldDimensions.contains(effectsLocation.getValue()) ? effectsLocation.getName() : "minecraft:overworld";
return effectsLocation != null && oldDimensions.contains(effectsLocation.getValue()) ? effectsLocation.getValue() : "minecraft:overworld";
}
@Override