Catch exceptions when tearing down block entities

This commit is contained in:
Sollace 2023-10-30 22:00:19 +00:00
parent c0a88dacd2
commit 61c8ae8927
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -127,7 +127,9 @@ public class EntityAppearance implements NbtSerialisable, PlayerDimensions.Provi
entity = null; entity = null;
} }
if (blockEntity != null) { if (blockEntity != null) {
blockEntity.markRemoved(); try {
blockEntity.markRemoved();
} catch (Throwable ignored) {}
blockEntity = null; blockEntity = null;
} }
} }