Improve physics code

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-07-07 09:35:47 +10:00
parent b482319b4b
commit 0711e168a1
3 changed files with 11 additions and 11 deletions

View File

@@ -762,7 +762,7 @@ public class CraftWorld implements World {
int flag = ((CraftBlockState) blockstate).getFlag();
delegate.setBlockData(blockstate.getX(), blockstate.getY(), blockstate.getZ(), blockstate.getBlockData());
net.minecraft.server.IBlockData newBlock = world.getType(position);
world.notifyAndUpdatePhysics(position, null, oldBlock, newBlock, newBlock, flag);
world.notifyAndUpdatePhysics(position, null, oldBlock, newBlock, newBlock, flag, 512);
}
world.capturedBlockStates.clear();
return true;