Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
I don't like errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Feb 29, 2024
1 parent 1fda0c0 commit 08c9be6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static float fireBlockHarvesting(List<ItemStack> drops, World world, Bloc
{
BlockEvent.HarvestDropsEvent event = new BlockEvent.HarvestDropsEvent(world, pos, state, fortune, dropChance, drops, player, silkTouch);
MinecraftForge.EVENT_BUS.post(event);
return event.getDropChance();
return event.isCanceled() ? 0 : event.getDropChance(); // Magma
}

public static IBlockState fireFluidPlaceBlockEvent(World world, BlockPos pos, BlockPos liquidPos, IBlockState state)
Expand Down

0 comments on commit 08c9be6

Please sign in to comment.