FakePlayerBackend never spawns heroes — instant NPE at runtime #6
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
enhancement
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/mc-heroes-mod#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.