Skip to content

Commit

Permalink
Set Bat hanging state to false
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 committed Aug 22, 2023
1 parent 1f0d86c commit 1ce45bc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1ce45bc

Please sign in to comment.