mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-31 16:41:02 +01:00
Add check for chunk cache
Temporary. Will need to find another fix :(
This commit is contained in:
parent
1c851b2a6d
commit
62e7d43819
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// If the entire section is updated, this might be a legacy non-full chunk update
|
||||||
// which can contain thousands of unchanged blocks
|
// 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.
|
// hack - bedrock might ignore the block updates if the chunk was still loading.
|
||||||
// sending an UpdateBlockPacket seems to force it
|
// sending an UpdateBlockPacket seems to force it
|
||||||
BlockChangeEntry firstEntry = packet.getEntries()[0];
|
BlockChangeEntry firstEntry = packet.getEntries()[0];
|
||||||
|
|
Loading…
Reference in a new issue