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()) {
|
switch (disguise.getType()) {
|
||||||
|
case ENDER_CRYSTAL:
|
||||||
|
return yMod + 1;
|
||||||
case BAT:
|
case BAT:
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
return yMod + ((LivingEntity) entity).getEyeHeight();
|
return yMod + ((LivingEntity) entity).getEyeHeight();
|
||||||
@ -3146,6 +3148,7 @@ public class DisguiseUtilities {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return yMod;
|
return yMod;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user