mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fixed crash when disguised as the eye of ender (it dies immediately)
This commit is contained in:
parent
3400512b39
commit
1df7f4fa40
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue