Fix ender_crystal disguise popping in the ground

This commit is contained in:
libraryaddict 2021-07-14 00:55:31 +12:00
parent 2ff26d972c
commit 4b940bcd20

View File

@ -3103,6 +3103,8 @@ public class DisguiseUtilities {
}
switch (disguise.getType()) {
case ENDER_CRYSTAL:
return yMod + 1;
case BAT:
if (entity instanceof LivingEntity) {
return yMod + ((LivingEntity) entity).getEyeHeight();
@ -3146,6 +3148,7 @@ public class DisguiseUtilities {
default:
break;
}
return yMod;
}
}