FakePlayerBackend never spawns heroes — instant NPE at runtime #6

Closed
opened 2026-05-09 00:43:26 +00:00 by Mark · 0 comments
Owner

ActorBackend interface declares spawn(HeroActor, BlockPos) without ServerLevel. FakePlayerBackend overrides that to log error + return null. Real impl is spawn(HeroActor, BlockPos, ServerLevel) not in interface. HeroSpawner.trySpawnOne() calls the wrong overload. Spawn always fails.

ActorBackend interface declares spawn(HeroActor, BlockPos) without ServerLevel. FakePlayerBackend overrides that to log error + return null. Real impl is spawn(HeroActor, BlockPos, ServerLevel) not in interface. HeroSpawner.trySpawnOne() calls the wrong overload. Spawn always fails.
Mark closed this issue 2026-05-11 18:42:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mc-heroes-mod#6
No description provided.