aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/features/GhostMacro.java
diff options
context:
space:
mode:
authorRoseGoldIsntGay <yoavkau@gmail.com>2022-01-15 00:19:33 +0200
committerRoseGoldIsntGay <yoavkau@gmail.com>2022-01-15 00:19:33 +0200
commit252dedff670a8a456ae557b8ac7f1727bb7fd1b1 (patch)
tree996f83583518b3774155f9454cea901af8bae534 /src/main/java/rosegoldaddons/features/GhostMacro.java
parent0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693 (diff)
downloadRGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.tar.gz
RGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.tar.bz2
RGA-252dedff670a8a456ae557b8ac7f1727bb7fd1b1.zip
2.5.2-pre1
Diffstat (limited to 'src/main/java/rosegoldaddons/features/GhostMacro.java')
-rw-r--r--src/main/java/rosegoldaddons/features/GhostMacro.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/rosegoldaddons/features/GhostMacro.java b/src/main/java/rosegoldaddons/features/GhostMacro.java
index 79a7907..364471b 100644
--- a/src/main/java/rosegoldaddons/features/GhostMacro.java
+++ b/src/main/java/rosegoldaddons/features/GhostMacro.java
@@ -36,6 +36,7 @@ public class GhostMacro {
private static Entity getClosestCreeper() {
Entity eman = null;
double closest = 9999.0;
+ if(Minecraft.getMinecraft().theWorld == null) return null;
for (Entity entity1 : (Minecraft.getMinecraft().theWorld.loadedEntityList)) {
if (entity1 instanceof EntityCreeper && !(((EntityCreeper) entity1).getHealth() == 0)) {
double dist = entity1.getDistanceSq(Minecraft.getMinecraft().thePlayer.posX, Minecraft.getMinecraft().thePlayer.posY, Minecraft.getMinecraft().thePlayer.posZ);