mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2024-11-15 10:35:12 +01:00
Change gamemode data type in JOIN_GAME handlers
This commit is contained in:
parent
2911f97222
commit
3cb7cc16fc
@ -108,7 +108,7 @@ public class EntityPackets20w14infinite {
|
||||
@Override
|
||||
public void register() {
|
||||
map(Type.INT); // Entity ID
|
||||
map(Type.UNSIGNED_BYTE); // Gamemode
|
||||
map(Type.BYTE); // Gamemode
|
||||
handler(wrapper -> {
|
||||
wrapper.write(Type.BYTE, (byte) -1); // Previous gamemode, set to none
|
||||
wrapper.write(Type.STRING_ARRAY, WORLD_NAMES); // World list - only used for command completion
|
||||
|
Loading…
Reference in New Issue
Block a user