Fixed npc despawn event (#843)
This commit is contained in:
committed by
Kyleeld
parent
d191db8a35
commit
c51efbbfd7
@@ -112,13 +112,7 @@ public abstract class RSNPCMixin implements RSNPC
|
|||||||
{
|
{
|
||||||
client.getCallbacks().post(new NpcDespawned(this));
|
client.getCallbacks().post(new NpcDespawned(this));
|
||||||
}
|
}
|
||||||
}
|
else if (this.getId() != -1)
|
||||||
|
|
||||||
@FieldHook("definition")
|
|
||||||
@Inject
|
|
||||||
public void afterCompositionChanged(int idx)
|
|
||||||
{
|
|
||||||
if (this.getDefinition() != null && this.getId() != -1)
|
|
||||||
{
|
{
|
||||||
client.getCallbacks().post(new NpcCompositionChanged(this));
|
client.getCallbacks().post(new NpcCompositionChanged(this));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user