aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-24 19:56:07 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-24 19:56:07 +0200
commit26d0a8c99d229979ea7863927305a84d2d931ba2 (patch)
tree1358f4d04bea4d05537179c8b41bb45e4f1bb86d
parent377ba0b7f1332503d14c21f2208e3613ed2a7562 (diff)
downloadNotEnoughUpdates-26d0a8c99d229979ea7863927305a84d2d931ba2.tar.gz
NotEnoughUpdates-26d0a8c99d229979ea7863927305a84d2d931ba2.tar.bz2
NotEnoughUpdates-26d0a8c99d229979ea7863927305a84d2d931ba2.zip
Drill fuelbar support for crystal hollows and Divan's drill
Divan's is untested but should work
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java
index aecd93d0..25148ba3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java
@@ -32,7 +32,7 @@ public class FuelBar {
fuelAmount = -1;
if(SBInfo.getInstance().getLocation() == null) return;
- if(!SBInfo.getInstance().getLocation().startsWith("mining_")) return;
+ if(!(SBInfo.getInstance().getLocation().startsWith("mining_")||SBInfo.getInstance().getLocation().equals("crystal_hollows"))) return;
if(Minecraft.getMinecraft().thePlayer == null) return;
if(!NotEnoughUpdates.INSTANCE.config.mining.drillFuelBar) return;
@@ -40,7 +40,7 @@ public class FuelBar {
ItemStack held = Minecraft.getMinecraft().thePlayer.getHeldItem();
if(held != null) {
String internalname = NotEnoughUpdates.INSTANCE.manager.getInternalNameForItem(held);
- if(internalname != null && internalname.contains("_DRILL_")) {
+ if(internalname != null && (internalname.contains("_DRILL_") || internalname.equals("DIVAN_DRILL"))) {
String[] lore = NotEnoughUpdates.INSTANCE.manager.getLoreFromNBT(held.getTagCompound());
for(String line : lore) {
try {