Exempt players in webs from nofall

This commit is contained in:
h31ix committed 2012-12-29 12:05:55 -05:00
1 parent 8c837f0ec1
commit 08776d44db
2 files changed
+35 -31

No files matched your search

@@ -236,7 +236,7 @@ public class Backend {
public boolean checkNoFall(Player player, double y) {
String name = player.getName();
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping() && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player)) {
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping() && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player) && !Utilities.isInWeb(player)) {
if (player.getFallDistance() == 0) {
if (nofallViolation.get(name) == null) {
nofallViolation.put(name, 1);