SPIGOT-4316: Do even less processing when block placement without physics requested

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-08-27 18:27:59 +10:00
parent 2e41945330
commit 844b70144f
3 changed files with 28 additions and 11 deletions

View File

@@ -157,7 +157,7 @@ public class CraftBlock implements Block {
return world.setTypeAndData(position, blockData, 3);
} else {
IBlockData old = world.getType(position);
boolean success = world.setTypeAndData(position, blockData, 18); // NOTIFY | NO_OBSERVER
boolean success = world.setTypeAndData(position, blockData, 2 | 16 | 1024); // NOTIFY | NO_OBSERVER | NO_PLACE (custom)
if (success) {
world.getMinecraftWorld().notify(
position,