mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Fix world error in BlockSource
This commit is contained in:
parent
09cf032885
commit
c0b358b248
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue