mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-02 09:09:55 +01:00
Use correct gamemode type in respawn packet
This commit is contained in:
parent
611dd93bb9
commit
4b0e352849
@ -55,7 +55,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
|||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(dimensionTransformer);
|
map(dimensionTransformer);
|
||||||
map(Type.LONG);
|
map(Type.LONG);
|
||||||
map(Type.BYTE);
|
map(Type.UNSIGNED_BYTE);
|
||||||
handler(wrapper -> {
|
handler(wrapper -> {
|
||||||
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
||||||
clientWorld.setEnvironment(wrapper.get(Type.INT, 0));
|
clientWorld.setEnvironment(wrapper.get(Type.INT, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user