Skip to content

Commit e325a03

Browse files
committed
Fix effects value
1 parent b9317df commit e325a03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_16_1to1_16_2/packets/EntityPackets1_16_2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public void registerMap() {
8484
}
8585

8686
private String getDimensionFromData(CompoundTag dimensionData) {
87+
// This may technically break other custom dimension settings for 1.16/1.16.1 clients, so those cases are considered semi "unsupported" here
8788
StringTag effectsLocation = dimensionData.get("effects");
88-
return effectsLocation != null && oldDimensions.contains(effectsLocation.getValue()) ? effectsLocation.getName() : "minecraft:overworld";
89+
return effectsLocation != null && oldDimensions.contains(effectsLocation.getValue()) ? effectsLocation.getValue() : "minecraft:overworld";
8990
}
9091

9192
@Override

0 commit comments

Comments
 (0)