Fix world error in BlockSource

This commit is contained in:
Jack Lin 2015-06-02 18:18:13 +12:00
parent 09cf032885
commit c0b358b248

View file

@ -294,6 +294,8 @@ public class BlockSource {
return false;
} else if (info.getClickType() != clickType) {
return false;
} else if (info.getPlayer().getWorld() != info.getBlock().getWorld()) {
return false;
} else if (Math.abs(info.getPlayer().getLocation().distance(info.getBlock().getLocation())) > range) {
return false;
} else if (info.getSourceType() == BlockSourceType.WATER