mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2025-01-18 19:25:26 +01:00
Fixes #38
This commit is contained in:
parent
87788e60a3
commit
98b5ea5abe
@ -343,6 +343,13 @@ public class MoveListener implements Listener {
|
||||
arenaSession.triggerLoss();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make the hit-box stricter for liquids beside the player to make lava labyrinths feasible
|
||||
if (block.isLiquid() && player != null && block.getY() > player.getLocation().getBlockY() &&
|
||||
playerBox.overlaps(fullBlockBox.clone().shift(block.getLocation()))) {
|
||||
arenaSession.triggerLoss();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Check whether the player's actual hit-box is intersecting with a block
|
||||
|
Loading…
x
Reference in New Issue
Block a user