Don't forget to clear

This commit is contained in:
Nassim Jahnke 2022-06-09 20:13:36 +02:00
parent 6a700d228d
commit f474067eb2
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -126,6 +126,7 @@ public final class EntityPackets1_19 extends EntityRewriter<Protocol1_18_2To1_19
map(Type.NBT); // Dimension registry
handler(wrapper -> {
final DimensionRegistryStorage dimensionRegistryStorage = wrapper.user().get(DimensionRegistryStorage.class);
dimensionRegistryStorage.clear();
// Cache dimensions and find current dimension
final String dimensionKey = wrapper.read(Type.STRING);