From 7d1a62e8102a87f2e7744a62a7d0fe8114f3667b Mon Sep 17 00:00:00 2001 From: Chiss Date: Fri, 10 Oct 2014 18:58:12 +1100 Subject: [PATCH] UHC anti-xray visibility update --- .../nautilus/game/arcade/game/games/uhc/UHC.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/uhc/UHC.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/uhc/UHC.java index b290b13dc..a62f7bec9 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/uhc/UHC.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/uhc/UHC.java @@ -1447,28 +1447,28 @@ public class UHC extends TeamGame //Remove Non-Aired Veins for (ArrayList vein : oreVeins) { - boolean nearAir = false; + boolean visible = false; //Check if Air is near Vein for (Block ore : vein) { - for (Block airCheck : UtilBlock.getSurrounding(ore, true)) + for (Block visibleCheckBlock : UtilBlock.getSurrounding(ore, true)) { - if (airCheck.getType() == Material.AIR) + if (visibleCheckBlock.getType() == Material.AIR || UtilBlock.isVisible(visibleCheckBlock)) { - nearAir = true; + visible = true; } - if (nearAir) + if (visible) break; } - if (nearAir) + if (visible) break; } //Remove Vein - if (!nearAir) + if (!visible) { if (xrayDebug) System.out.println("DELETING VEIN;");