Update KittenNotifierPlugin.java

Prevent stack overflow, not sure if this is a complete fix, but stopped my crashes at GE
This commit is contained in:
zeruth
2019-04-20 15:39:55 -04:00
parent c0bc66fb9c
commit ab7ca3ebed

View File

@@ -52,6 +52,7 @@ public class KittenNotifierPlugin extends Plugin{
}
@Subscribe
public void onNpcActionChanged(NpcActionChanged event) {
if (event.getNpcComposition()!=null)
if (!config.catOwned()) {
for (NPC npc : client.getNpcs()) {
if (npc.getInteracting() != null) {