mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Catch exceptions when tearing down block entities
This commit is contained in:
parent
c0a88dacd2
commit
61c8ae8927
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ public class EntityAppearance implements NbtSerialisable, PlayerDimensions.Provi
|
||||||
entity = null;
|
entity = null;
|
||||||
}
|
}
|
||||||
if (blockEntity != null) {
|
if (blockEntity != null) {
|
||||||
|
try {
|
||||||
blockEntity.markRemoved();
|
blockEntity.markRemoved();
|
||||||
|
} catch (Throwable ignored) {}
|
||||||
blockEntity = null;
|
blockEntity = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue