Change gamemode data type in JOIN_GAME handlers

This commit is contained in:
RaphiMC 2023-12-04 00:05:18 +01:00
parent 2911f97222
commit 3cb7cc16fc
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -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