Fix registry on respawn

This commit is contained in:
Nassim Jahnke 2022-02-09 19:57:54 +01:00
parent ee27cbdd22
commit 130ab70550
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -64,6 +64,12 @@ public final class Protocol1_18_2To1_18 extends AbstractProtocol<ClientboundPack
}
});
registerClientbound(ClientboundPackets1_18.RESPAWN, new PacketRemapper() {
@Override
public void registerMap() {
handler(wrapper -> addTagPrefix(wrapper.passthrough(Type.NBT)));
}
});
}
private void addTagPrefix(CompoundTag tag) {