Catch exceptions when tearing down block entities

This commit is contained in:
Sollace 2023-10-30 22:00:19 +00:00
parent 1f46b08742
commit b59c765197
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;
}
if (blockEntity != null) {
try {
blockEntity.markRemoved();
} catch (Throwable ignored) {}
blockEntity = null;
}
}