mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
It'd be nice if Ice Fishing actually worked.
This commit is contained in:
parent
e312e95aed
commit
614557e2fa
@ -209,7 +209,7 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
case IN_GROUND:
|
case IN_GROUND:
|
||||||
Fish hook = event.getHook();
|
Fish hook = event.getHook();
|
||||||
Block block = hook.getLocation().getBlock();
|
Block block = event.getPlayer().getTargetBlock(null, 100);
|
||||||
|
|
||||||
if (fishingManager.canIceFish(block)) {
|
if (fishingManager.canIceFish(block)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user