Fix unloaded chunks movement setting

This commit is contained in:
Aikar 2018-10-24 08:38:34 -04:00
parent d1ebaaf82b
commit 9e795dfe7f
No known key found for this signature in database
GPG key ID: 401ADFC9891FAAFE

View file

@ -16,7 +16,7 @@ index 7ac07ac07ac0..7ac07ac07ac0 100644
+ +
+ public boolean preventMovingIntoUnloadedChunks = false; + public boolean preventMovingIntoUnloadedChunks = false;
+ private void preventMovingIntoUnloadedChunks() { + private void preventMovingIntoUnloadedChunks() {
+ preventMovingIntoUnloadedChunks = getBoolean("settings.prevent-moving-into-unloaded-chunks", false); + preventMovingIntoUnloadedChunks = getBoolean("prevent-moving-into-unloaded-chunks", false);
+ } + }
} }
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java