From cafd3713a9738133f6607e0b1313f1c1b44ac1af Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Fri, 9 Jan 2026 19:55:11 +0100 Subject: [PATCH] add a message about something blocking spawning new entity --- .../me/youhavetrouble/standin/entity/EntityHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/youhavetrouble/standin/entity/EntityHandler.java b/src/main/java/me/youhavetrouble/standin/entity/EntityHandler.java index 9963365..baec5cf 100644 --- a/src/main/java/me/youhavetrouble/standin/entity/EntityHandler.java +++ b/src/main/java/me/youhavetrouble/standin/entity/EntityHandler.java @@ -116,8 +116,10 @@ public abstract class EntityHandler { } if (foundConverter == null) return; Entity converted = foundConverter.spawn(existing); - if (converted == null) return; - if (!converted.isInWorld()) return; + if (converted == null || !converted.isInWorld()) { + callbackPlayer.sendMessage(Component.text("Failed to convert entity to the new type. Is something blocking spawning new entities?").color(NamedTextColor.RED)); + return; + } existing.remove(); }, ClickCallback.Options.builder().lifetime(Duration.ofHours(1)).uses(1).build()) ).build();