3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-01 23:50:11 +02:00

Add check for chunk cache

Temporary. Will need to find another fix :(
Dieser Commit ist enthalten in:
AJ Ferguson 2024-05-12 03:53:23 -04:00
Ursprung 1c851b2a6d
Commit 62e7d43819

Datei anzeigen

@ -69,7 +69,7 @@ public class JavaSectionBlocksUpdateTranslator extends PacketTranslator<Clientbo
// If the entire section is updated, this might be a legacy non-full chunk update
// which can contain thousands of unchanged blocks
if (packet.getEntries().length == 4096) {
if (packet.getEntries().length == 4096 && !session.getGeyser().getWorldManager().hasOwnChunkCache()) {
// hack - bedrock might ignore the block updates if the chunk was still loading.
// sending an UpdateBlockPacket seems to force it
BlockChangeEntry firstEntry = packet.getEntries()[0];