Fixed crash when disguised as the eye of ender (it dies immediately)

This commit is contained in:
Sollace 2020-10-10 19:15:04 +02:00
parent 3400512b39
commit 1df7f4fa40

View file

@ -319,6 +319,10 @@ public class Disguise implements NbtSerialisable {
}
private static void getCollissionShapes(Entity entity, ShapeContext context, Consumer<VoxelShape> output) {
if (entity == null) {
return;
}
if (entity.method_30948()) {
output.accept(VoxelShapes.cuboid(entity.getBoundingBox()));
} else if (entity instanceof FallingBlockEntity) {