This commit is contained in:
RK_01 2023-12-04 10:09:25 +01:00 committed by GitHub
parent 851295d48c
commit 9b09b1f5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ public class EntityPackets {
@Override
public void register() {
map(Type.INT); // Entity ID
map(Type.BYTE); // Gamemode
map(Type.UNSIGNED_BYTE); // Gamemode
handler(wrapper -> {
wrapper.write(Type.BYTE, (byte) -1); // Previous gamemode, set to none
wrapper.write(Type.STRING_ARRAY, Arrays.copyOf(WORLD_NAMES, WORLD_NAMES.length)); // World list - only used for command completion