OtherDrops

226k Downloads

2.0 dropgroups don't work

Zarius opened this issue ยท 2 comments

commented
  STONE: #1
                - dropgroup: coal
                  tool: ANY_PICKAXE
                  drops:
                    - drop: COAL
                      quantity: 1-2
                    - drop: GRAVEL
                  chance: 100
                  exclusive: 1

results in:

09:54:40 [SEVERE] Could not pass event BLOCK_BREAK to OtherDrops
java.lang.ClassCastException: com.gmail.zariust.otherdrops.event.GroupDropEvent cannot be cast to com.gmail.zariust.otherdrops.event.SimpleDropEvent
    at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:310)
    at com.gmail.zariust.otherdrops.listener.OdBlockListener.onBlockBreak(OdBlockListener.java:84)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
commented

Either cast to CustomDrop instead or throw in an instanceof check.

commented

That error message seems to have been fixed in recent builds, a final issue with dropgroups was fixed in 19abdf3. Seems to be working ok now.