From 1ce45bcd02b2a6a641bbdd1e7851f64fe4c4b343 Mon Sep 17 00:00:00 2001 From: kuba6000 Date: Tue, 22 Aug 2023 23:49:13 +0200 Subject: [PATCH] Set Bat hanging state to false --- .../java/com/kuba6000/mobsinfo/loader/MobRecipeLoader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/kuba6000/mobsinfo/loader/MobRecipeLoader.java b/src/main/java/com/kuba6000/mobsinfo/loader/MobRecipeLoader.java index 0bdff62..88a2ba8 100644 --- a/src/main/java/com/kuba6000/mobsinfo/loader/MobRecipeLoader.java +++ b/src/main/java/com/kuba6000/mobsinfo/loader/MobRecipeLoader.java @@ -50,6 +50,7 @@ import net.minecraft.entity.monster.EntityMagmaCube; import net.minecraft.entity.monster.EntitySkeleton; import net.minecraft.entity.monster.EntitySlime; +import net.minecraft.entity.passive.EntityBat; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; @@ -683,6 +684,10 @@ else if (StatCollector.translateToLocal("entity." + k + ".name") else((EntitySlimeAccessor) e).callSetSlimeSize(1); } + if (e instanceof EntityBat) { + ((EntityBat) e).setIsBatHanging(false); + } + ((EntityAccessor) e).setRand(frand); droplist drops = new droplist();