potentially fix plugins despawning the entity the moment it appears

This commit is contained in:
2026-01-08 16:02:39 +01:00
parent b4c4386fe4
commit 4a0e65cafa
@@ -117,6 +117,7 @@ public abstract class EntityHandler<E extends Entity> {
if (foundConverter == null) return; if (foundConverter == null) return;
Entity converted = foundConverter.spawn(existing); Entity converted = foundConverter.spawn(existing);
if (converted == null) return; if (converted == null) return;
if (!converted.isInWorld()) return;
existing.remove(); existing.remove();
}, ClickCallback.Options.builder().lifetime(Duration.ofHours(1)).uses(1).build()) }, ClickCallback.Options.builder().lifetime(Duration.ofHours(1)).uses(1).build())
).build(); ).build();