Skip to content

Changes

Started 18 days ago
Took 55 sec on Builder

Summary

  1. Fix excavation treasure drops broken by BlockDropItemEvent refactor (commit: 47cebf2) (details)
Commit 47cebf2cc2830eac69af3e4e5cd0d20cf9d81c4e by nossr50
Fix excavation treasure drops broken by BlockDropItemEvent refactor

block.getType() returns AIR by the time BlockDropItemEvent fires because
the block is removed before the event is dispatched. Capture the pre-break
material from event.getBlockState().getType() and thread it through to
affectedByGigaDrillBreaker and rollAndCollectTreasureDrops so treasure
lookups use the correct material instead of AIR.
(commit: 47cebf2)
The file was modifiedsrc/main/java/com/gmail/nossr50/skills/excavation/ExcavationManager.java (diff)
The file was modifiedsrc/test/java/com/gmail/nossr50/skills/excavation/ExcavationTest.java (diff)
The file was modifiedsrc/main/java/com/gmail/nossr50/skills/excavation/Excavation.java (diff)
The file was modifiedsrc/main/java/com/gmail/nossr50/listeners/BlockListener.java (diff)