mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-09-21 07:56:41 +00:00
Fix ender_crystal disguise popping in the ground
This commit is contained in:
parent
2ff26d972c
commit
4b940bcd20
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue