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

@@ -191,7 +191,7 @@
+ block.getBlock().onPlace(block, world, newblockposition, oldBlock, true);
+ }
+
+ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag); // send null chunk as chunk.k() returns false by this point
+ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag, 512); // send null chunk as chunk.k() returns false by this point
+ }
+
+ // Special case juke boxes as they update their tile entity. Copied from ItemRecord.