Refactor processBlockPlace logic. Fixes BUKKIT-3406 and BUKKIT-3454

The previous logic was faulty since it lost the logic of "placing" the
block. It was also taking into account data that could have been
changed outside of the processing of this event, which is irrelevant
to the processing of this event.
This commit is contained in:
feildmaster
2013-01-18 23:07:28 -06:00
parent 6a499c8589
commit 9ba0ddc292
4 changed files with 14 additions and 8 deletions

View File

@@ -196,7 +196,6 @@ public class BlockRedstoneWire extends Block {
}
public void onPlace(World world, int i, int j, int k) {
if (world.suppressPhysics) return; // CraftBukkit
super.onPlace(world, i, j, k);
if (!world.isStatic) {
this.l(world, i, j, k);