Add bukkit bug workaround (http://leaky.bukkit.org/issues/1227) - piston exceptions

This commit is contained in:
Mike Primm 2011-09-12 10:28:36 +08:00 committed by mikeprimm
parent 3076b28c24
commit ebfe2a004b

View File

@ -498,9 +498,6 @@ public class DynmapPlugin extends JavaPlugin {
if(event.isCancelled())
return;
Block b = event.getBlock();
/* Avoid bogus piston events from Bukkit */
if((b.getType() != Material.PISTON_BASE) && (b.getType() != Material.PISTON_STICKY_BASE))
return;
Location loc = b.getLocation();
mapManager.sscache.invalidateSnapshot(loc);
BlockFace dir;