Use correct gamemode type in respawn packet

This commit is contained in:
KennyTV 2020-05-23 12:49:21 +02:00
parent 611dd93bb9
commit 4b0e352849
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -55,7 +55,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
public void registerMap() {
map(dimensionTransformer);
map(Type.LONG);
map(Type.BYTE);
map(Type.UNSIGNED_BYTE);
handler(wrapper -> {
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
clientWorld.setEnvironment(wrapper.get(Type.INT, 0));