From a1a6ee7107bd8c3f86bf213214dd83a696f93dec Mon Sep 17 00:00:00 2001 From: wizjany Date: Wed, 4 Feb 2015 03:33:37 -0500 Subject: [PATCH] Fixed blocks (e.g. sugar canes) adjacent to physics blocks (e.g. sand) not updating. Fixes WORLDGUARD-3367. This change MAY have breaking unintended consequences, but the physics configs seem to still be working. --- .../worldguard/bukkit/listener/WorldGuardBlockListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java b/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java index 9f3cbc0b..04dbf548 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java @@ -380,7 +380,7 @@ public void onBlockPhysics(BlockPhysicsEvent event) { return; } - int id = event.getChangedTypeId(); + int id = event.getBlock().getTypeId(); if (id == 13 && wcfg.noPhysicsGravel) { event.setCancelled(true);