1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-03-07 10:41:28 +01:00

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) { private static void getCollissionShapes(Entity entity, ShapeContext context, Consumer<VoxelShape> output) {
if (entity == null) {
return;
}
if (entity.method_30948()) { if (entity.method_30948()) {
output.accept(VoxelShapes.cuboid(entity.getBoundingBox())); output.accept(VoxelShapes.cuboid(entity.getBoundingBox()));
} else if (entity instanceof FallingBlockEntity) { } else if (entity instanceof FallingBlockEntity) {