MerchantPug / apugli

An extension to Apoli for certain mods' use.
MIT License
5 stars 4 forks source link

Crash with Mobs Ignore when trying to check for a power #37

Closed GekidoLukas closed 1 year ago

GekidoLukas commented 1 year ago

Hey, so wanted to have mobs ignore me unless they have a certain power. When dropping an item, this crashed my game since items can't have powers. So I tried to check for living, but it still crashed.

This is my power:

{
    "type": "apugli:mobs_ignore",
    "mob_condition": {
      "type": "origins:living"
    },
    "bientity_condition": {
      "type": "origins:target_condition",
      "condition": {
        "type": "origins:power",
        "power": "mmpextras:enlightened",
        "inverted": true
      }
    }
  }

Crash Report: https://pastebin.com/6dCa4qVX

I think a check if the entity can have powers could fix it, but that is just a theory on my side.

I hope you can fix it.

MerchantPug commented 1 year ago

You probably noticed, but this doesn't seem to be on my end judging by the crashlog.

GekidoLukas commented 1 year ago

Yes I did, it seems to be a more general issue