Fix NPE when block connection is disabled

This commit is contained in:
creeper123123321 2019-02-23 20:11:44 -03:00
parent d962ef09ff
commit 96366aae42
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -308,7 +308,7 @@ public class WorldPackets {
}
boolean willSaveConnection = false;
if (ConnectionData.needStoreBlocks() && Via.getConfig().isServersideBlockConnections()) {
if (Via.getConfig().isServersideBlockConnections() && ConnectionData.needStoreBlocks()) {
for (int p = 0; p < section.getPaletteSize(); p++) {
int newId = section.getPaletteEntry(p);
if (ConnectionData.isWelcome(newId)) {