aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2021-03-27 07:40:53 +0800
committerBuildTools <james.jenour@protonmail.com>2021-03-27 07:40:53 +0800
commit03b9a8dbcc1ebd5f8c39e4733a741a4092ab0a1d (patch)
treeb8ddc6757fc06f4a325121e7d972c0ddf152b401 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java
parent06c3c7fcfd8f65e2a30f81626457f4180ea52a36 (diff)
downloadnotenoughupdates-03b9a8dbcc1ebd5f8c39e4733a741a4092ab0a1d.tar.gz
notenoughupdates-03b9a8dbcc1ebd5f8c39e4733a741a4092ab0a1d.tar.bz2
notenoughupdates-03b9a8dbcc1ebd5f8c39e4733a741a4092ab0a1d.zip
PRE26
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java
index d01a173f..6f706b5c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java
@@ -104,26 +104,6 @@ public class MiningStuff {
}
}
- public static void tick() {
- if(SBInfo.getInstance().getLocation() == null) return;
- if(!SBInfo.getInstance().getLocation().equals("mining_3")) return;
- if(Minecraft.getMinecraft().theWorld == null) return;
-
- for(Entity entity : Minecraft.getMinecraft().theWorld.loadedEntityList) {
- if(entity instanceof EntityCreeper) {
- EntityCreeper creeper = (EntityCreeper) entity;
- if(creeper.isInvisible() && creeper.getPowered()) {
-
- BlockPos below = creeper.getPosition().down();
- IBlockState state = Minecraft.getMinecraft().theWorld.getBlockState(below);
- if(state != null && state.getBlock() == Blocks.stained_glass) {
- creeper.setInvisible(!NotEnoughUpdates.INSTANCE.config.mining.revealMistCreepers);
- }
- }
- }
- }
- }
-
@SubscribeEvent
public void renderWorldLast(RenderWorldLastEvent event) {
if(overlayLoc == null) return;
@@ -186,19 +166,4 @@ public class MiningStuff {
}
}
- public static boolean blockClicked(BlockPos loc) {
- if(loc.equals(overlayLoc)) {
- overlayLoc = null;
- }
- IBlockState state = Minecraft.getMinecraft().theWorld.getBlockState(loc);
- if(NotEnoughUpdates.INSTANCE.config.mining.dontMineStone &&
- state != null && SBInfo.getInstance().getLocation() != null &&
- SBInfo.getInstance().getLocation().startsWith("mining_") &&
- (state.getBlock() == Blocks.stone && state.getValue(BlockStone.VARIANT) == BlockStone.EnumType.STONE ||
- state.getBlock() == Blocks.cobblestone)) {
- return true;
- }
- return false;
- }
-
}