Fixed npc despawn event (#843)

This commit is contained in:
Owain van Brakel
2019-07-01 16:00:32 +02:00
committed by Kyleeld
parent d191db8a35
commit c51efbbfd7

View File

@@ -112,13 +112,7 @@ public abstract class RSNPCMixin implements RSNPC
{
client.getCallbacks().post(new NpcDespawned(this));
}
}
@FieldHook("definition")
@Inject
public void afterCompositionChanged(int idx)
{
if (this.getDefinition() != null && this.getId() != -1)
else if (this.getId() != -1)
{
client.getCallbacks().post(new NpcCompositionChanged(this));
}