aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/features/EntityReach.java
diff options
context:
space:
mode:
authorRoseGoldIsntGay <yoavkau@gmail.com>2022-01-13 18:50:22 +0200
committerRoseGoldIsntGay <yoavkau@gmail.com>2022-01-13 18:50:22 +0200
commit0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693 (patch)
tree6d99f8779e4cde0aa3d8d40f8501b7e3933b5809 /src/main/java/rosegoldaddons/features/EntityReach.java
parentf06690a35ed7040db0aed7cec1f8a392eeffa3e7 (diff)
downloadRGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.tar.gz
RGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.tar.bz2
RGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.zip
2.5.1
Diffstat (limited to 'src/main/java/rosegoldaddons/features/EntityReach.java')
-rw-r--r--src/main/java/rosegoldaddons/features/EntityReach.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main/java/rosegoldaddons/features/EntityReach.java b/src/main/java/rosegoldaddons/features/EntityReach.java
index 66715fe..f59c37a 100644
--- a/src/main/java/rosegoldaddons/features/EntityReach.java
+++ b/src/main/java/rosegoldaddons/features/EntityReach.java
@@ -85,15 +85,6 @@ public class EntityReach {
RenderUtils.drawEntityBox(entity, Color.MAGENTA, true, event.partialTicks);
}
}
- else if(itemStack.serializeNBT().getCompoundTag("tag").getCompoundTag("SkullOwner").getCompoundTag("Properties").toString().contains("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODZhZGRiZDVkZWRhZDQwOTk5NDczYmU0YTdmNDhmNjIzNmE3OWEwZGNlOTcxYjVkYmQ3MzcyMDE0YWUzOTRkIn19fQ==")) {
- RenderUtils.drawEntityBox(entity, Color.GREEN, true, event.partialTicks);
- }
- else if(itemStack.serializeNBT().getCompoundTag("tag").getCompoundTag("SkullOwner").getCompoundTag("Properties").toString().contains("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGRhNDE0ZDI5Y2M5ZWJiZmMxY2JkY2QyMTFlZWU0NzI2ZDA2NzZiZTI2MmU5Y2I4ZWVmZmFmZDFmYzM4MGIxNCJ9fX0=")) {
- RenderUtils.drawEntityBox(entity, Color.YELLOW, true, event.partialTicks);
- }
- else if(itemStack.serializeNBT().getCompoundTag("tag").getCompoundTag("SkullOwner").getCompoundTag("Properties").toString().contains("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjMxMmE1YTEyZWNiMjRkNjg1MmRiMzg4ZTZhMzQ3MjFjYzY3ZjUyMmNjZGU3ZTgyNGI5Zjc1ZTk1MDM2YWM5MyJ9fX0=")) {
- RenderUtils.drawEntityBox(entity, Color.WHITE, true, event.partialTicks);
- }
}
}
}
@@ -121,7 +112,7 @@ public class EntityReach {
Vec3 position = new Vec3(Minecraft.getMinecraft().thePlayer.posX, (Minecraft.getMinecraft().thePlayer.posY + Minecraft.getMinecraft().thePlayer.getEyeHeight()), Minecraft.getMinecraft().thePlayer.posZ);
Vec3 look = Minecraft.getMinecraft().thePlayer.getLook(event.partialTicks);
look = scaleVec(look, 0.2F);
- for (int i = 0; i < 200; i++) {
+ for (int i = 0; i < 320; i++) {
if (aabb.minX <= position.xCoord && aabb.maxX >= position.xCoord && aabb.minY <= position.yCoord && aabb.maxY >= position.yCoord && aabb.minZ <= position.zCoord && aabb.maxZ >= position.zCoord) {
return true;
}