goety-3.0.7-neoforge-1.21.1.jar
Curse Maven Snippet
What's new
Version 3.0.7
Bug Fixes
Block Drop Fixes
Fixed Haunted Glass not dropping items: Haunted Glass blocks now properly drop themselves when broken by players. The block now explicitly handles item drops using
popResourceto ensure items are spawned correctly.Fixed missing item drops for other blocks: Added explicit drop handling for several blocks that were potentially missing item drops:
- Jade Light: Wall-mounted light blocks now properly drop items when broken.
- Pine Lantern: Wall-mounted lantern blocks now properly drop items when broken.
- Dungeon Torches (Iron and Gold): Torch blocks now properly drop items when broken.
BlockEntity Fixes
- Fixed crash when encoding empty ItemStack in Cursed Cage: The
CursedCageBlockEntitywas attempting to encode emptyItemStacks to NBT, causing crashes. Added a check to only encode non-empty item stacks.
Files Changed
src/main/java/za/co/infernos/goety/common/blocks/HauntedGlassBlock.java- AddedplayerDestroyoverride with explicit item drop.src/main/java/za/co/infernos/goety/common/blocks/JadeLightBlock.java- AddedplayerDestroyoverride with explicit item drop.src/main/java/za/co/infernos/goety/common/blocks/PineLanternBlock.java- AddedplayerDestroyoverride with explicit item drop.src/main/java/za/co/infernos/goety/common/blocks/DungeonTorchBlock.java- AddedplayerDestroyoverride with explicit item drop.src/main/java/za/co/infernos/goety/common/blocks/entities/CursedCageBlockEntity.java- Added check to prevent encoding empty ItemStacks.
This mod has no additional files

