mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-25 13:13:17 +02:00
Fix NPE when block connection is disabled
This commit is contained in:
parent
d962ef09ff
commit
96366aae42
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user