mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
Send dig packets to synchronize states after breaking blocks. (Should reduce ghost-block problems with AOE tools)
This commit is contained in:
1 parent
699b0f5796
commit
46d84095cc
2 files changed
+15
No files matched your search
@@ -237,7 +237,14 @@ public class Scythe extends Weapon
|
||||
// Workaround for dropping experience
|
||||
if (!butter)
|
||||
localBlock.dropXpOnBlockBreak(world, xPos, yPos, zPos, exp);
|
||||
}
|
||||
|
||||
if(world.isRemote) {
|
||||
INetHandler handler = FMLClientHandler.instance().getClientPlayHandler();
|
||||
if(handler != null && handler instanceof NetHandlerPlayClient) {
|
||||
NetHandlerPlayClient handlerClient = (NetHandlerPlayClient) handler;
|
||||
handlerClient.addToSendQueue(new C07PacketPlayerDigging(0, x, y, z, Minecraft.getMinecraft().objectMouseOver.sideHit));
|
||||
handlerClient.addToSendQueue(new C07PacketPlayerDigging(2, x, y, z, Minecraft.getMinecraft().objectMouseOver.sideHit));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user