OtherDrops

226k Downloads

2.0 - issues with Entity drops

Zarius opened this issue ยท 4 comments

commented
 ZOMBIE:
    - tool: ANY_SWORD   # bug: player attacks on creatures are recorded as damage_entity_attack and don't match the sword
      drop: CHAINMAIL_HELMET
      chance: 100
      message: ["A little dusty, but this chainmail helmet might look good on you."]
    - tool: ANY  
      drop: MONEY  # bug: entity attacks - recipient is null
      quantity: 150
      chance: 100     
commented

The first one would be an issue in OccurredDrop.setTool(EntityDamageEvent), most likely, though I can't see why it would be a problem. The second sounds like it just needs a null check.

commented

Yes, I think the second one is a null check to make sure a money plugin has registered. iConomy 6 isn't registering for some reason (which is why the player got the NPE) - I'm looking into that.

commented

I suppose the first may be fixed in the commits that I haven't pushed yet...

commented

Both fixed for now in beta5 (rolled back lastdamagecause code for entity deaths - will test it out when the new code is pushed.