aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test/command
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-26 21:49:21 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-26 21:49:21 +0200
commit637506306077e4df63c7aef30a37eb8ad27c06f4 (patch)
tree23c4b66d13d893abdc3a632633880ac611aef2cd /src/main/java/at/hannibal2/skyhanni/test/command
parentddbf374e9302ae47d43aa981c0caf33a264b2496 (diff)
downloadskyhanni-637506306077e4df63c7aef30a37eb8ad27c06f4.tar.gz
skyhanni-637506306077e4df63c7aef30a37eb8ad27c06f4.tar.bz2
skyhanni-637506306077e4df63c7aef30a37eb8ad27c06f4.zip
fixing bug that wrong entities get counted as summoning mobs
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/command')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/CopyNearbyEntitiesCommand.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/CopyNearbyEntitiesCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/CopyNearbyEntitiesCommand.kt
index 718c8adfc..291000c77 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/command/CopyNearbyEntitiesCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/command/CopyNearbyEntitiesCommand.kt
@@ -10,6 +10,7 @@ import at.hannibal2.skyhanni.utils.toLorenzVec
import net.minecraft.client.Minecraft
import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.item.EntityArmorStand
+import net.minecraft.entity.monster.EntityEnderman
import net.minecraft.entity.monster.EntityMagmaCube
object CopyNearbyEntitiesCommand {
@@ -72,6 +73,10 @@ object CopyNearbyEntitiesCommand {
}
}
+ } else if (entity is EntityEnderman) {
+ val enderman = entity as EntityEnderman
+ val heldItem = enderman.heldItem
+ resultList.add("enderman heldItem: $heldItem")
} else {
if (entity is EntityLivingBase) {
val baseMaxHealth = entity.baseMaxHealth