From b59c765197a2c1346ac8beac5c1837c4cb74e179 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 30 Oct 2023 22:00:19 +0000 Subject: [PATCH] Catch exceptions when tearing down block entities --- .../unicopia/entity/behaviour/EntityAppearance.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EntityAppearance.java b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EntityAppearance.java index 50085cf0..edad3ecb 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EntityAppearance.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/EntityAppearance.java @@ -127,7 +127,9 @@ public class EntityAppearance implements NbtSerialisable, PlayerDimensions.Provi entity = null; } if (blockEntity != null) { - blockEntity.markRemoved(); + try { + blockEntity.markRemoved(); + } catch (Throwable ignored) {} blockEntity = null; } }