mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
NPCs decrement World.updatable on death. Fixes problem making Worlds stay loaded forever in RAM
This commit is contained in:
parent
a7d1a00ae8
commit
156deb8f4e
@ -48,6 +48,8 @@ public class HarvesterNPC extends NonPlayerCharacter {
|
||||
@Override
|
||||
public void onDeadCallback() {
|
||||
|
||||
getWorld().decUpdatable();
|
||||
|
||||
if (getFactory() != null && getFactory().getNpcs() != null) {
|
||||
getFactory().getNpcs().remove(this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user