aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java b/src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java
index 6b0a7528f..2dd0d291e 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/utils/Utils.java
@@ -46,12 +46,12 @@ public class Utils {
return input.toLowerCase().replace(" ", "").replace(replace, "");
}
- public static boolean isPlayerHoldingRedstone(EntityPlayerSP player) {
- if (!LorenzMod.config.main.requireRedstone) return true;
- ArrayList<Item> redstoneItems = new ArrayList<>(Arrays.asList(Items.redstone, Items.repeater, Items.comparator, Item.getByNameOrId("minecraft:redstone_torch")));
- if (player.getHeldItem() != null) return redstoneItems.contains(player.getHeldItem().getItem());
- return false;
- }
+// public static boolean isPlayerHoldingRedstone(EntityPlayerSP player) {
+// if (!LorenzMod.config.main.requireRedstone) return true;
+// ArrayList<Item> redstoneItems = new ArrayList<>(Arrays.asList(Items.redstone, Items.repeater, Items.comparator, Item.getByNameOrId("minecraft:redstone_torch")));
+// if (player.getHeldItem() != null) return redstoneItems.contains(player.getHeldItem().getItem());
+// return false;
+// }
public static boolean inRangeInclusive(int value, int min, int max) {
return value <= max && value >= min;