Catch exceptions when trying to render a minion

This commit is contained in:
Sollace 2023-09-03 17:45:59 +01:00
parent 407c06746a
commit 85f01c317c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -81,10 +81,12 @@ public class WorldRenderDelegate {
); );
}).orElse(buffer); }).orElse(buffer);
}, light); }, light);
return true;
} catch (Throwable t) {
Unicopia.LOGGER.error("Error whilst rendering minion", t);
} finally { } finally {
recurseMinion = false; recurseMinion = false;
} }
return true;
} }
if (pony instanceof ItemImpl) { if (pony instanceof ItemImpl) {