mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-07 19:19:33 +01:00
Fixed connecting after sending the packet
This commit is contained in:
parent
87eceb5264
commit
13086c7cac
@ -403,10 +403,15 @@ public class WorldPackets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Via.getConfig().isServersideBlockConnections()) {
|
if (Via.getConfig().isServersideBlockConnections()) {
|
||||||
|
ConnectionData.connectBlocks(wrapper.user(), chunk);
|
||||||
// Workaround for packet order issue
|
// Workaround for packet order issue
|
||||||
wrapper.send(Protocol1_13To1_12_2.class, true, true);
|
wrapper.send(Protocol1_13To1_12_2.class, true, true);
|
||||||
wrapper.cancel();
|
wrapper.cancel();
|
||||||
ConnectionData.connectBlocks(wrapper.user(), chunk);
|
for (int i = 0; i < chunk.getSections().length; i++) {
|
||||||
|
ChunkSection section = chunk.getSections()[i];
|
||||||
|
if (section == null) continue;
|
||||||
|
ConnectionData.updateChunkSectionNeighbours(wrapper.user(), chunk.getX(), chunk.getZ(), i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user