How do I reload a chunk on the client side. Say a bunch of blocks change in a chunk too quickly for the client to get the changes from the server. Like
this one works but sets some block to air on the client side so if I were to fly or walk into them I will lag back. This is executed on the server thread.
EntityClientPlayerMP player = (EntityClientPlayerMP) PacketHandler.getPlayer(context);
WorldClient world = (WorldClient) player.worldObj;
world.getChunkProvider().provideChunk(packet.x, packet.z);
this one is excited on the client side and doesn't work at all.
There should be a Chunk.markDirty() method or similar (depending on which version you're dealing with). For 1.7.10 I think you just set the isModified field directly to mark it for update.
How do I reload a chunk on the client side. Say a bunch of blocks change in a chunk too quickly for the client to get the changes from the server. Like
but for the entire chunk
I've Tried:
this one works but sets some block to air on the client side so if I were to fly or walk into them I will lag back. This is executed on the server thread.
this one is excited on the client side and doesn't work at all.
This method works but leaves some blocks unupdated. Looks like this:
Runs on server side
I know 1.7.10 is outdated but if you have a solution in 1.8 or higher feel free to comment anyways.
There should be a Chunk.markDirty() method or similar (depending on which version you're dealing with). For 1.7.10 I think you just set the isModified field directly to mark it for update.