Skip to content

Commit

Permalink
Fix Nova block drops
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Apr 16, 2023
1 parent f90debc commit 8cda276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/src/main/kotlin/xyz/xenondevs/nova/util/BlockUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ internal fun Block.removeInternal(ctx: BlockBreakContext, drops: Boolean, breakE
}

if (BlockManager.getBlockState(pos) != null) {
val itemEntities = BlockManager.getDrops(ctx)!!.let(::createDroppedItemEntities)
val itemEntities = if (drops) BlockManager.getDrops(ctx)!!.let(::createDroppedItemEntities) else emptyList()
BlockManager.removeBlockStateInternal(ctx, breakEffects, sendEffectsToBreaker)
return itemEntities
}
Expand Down

0 comments on commit 8cda276

Please sign in to comment.