Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected ItemInteractionResult useItemOn(ItemStack itemStack, BlockState state,
else if (stack.is(Items.BUCKET) && state.getValue(MOISTURE) > 0) {
level.playSound(player, pos, SoundEvents.BUCKET_FILL, SoundSource.BLOCKS, 1.0f, 1.0f);
if (player instanceof ServerPlayer) {
ItemStack itemStack2 = ItemUtils.createFilledResult(stack, player, Items.LAVA_BUCKET.getDefaultInstance());
ItemStack itemStack2 = ItemUtils.createFilledResult(stack, player, Items.WATER_BUCKET.getDefaultInstance());
player.setItemInHand(hand, itemStack2);
level.setBlockAndUpdate(pos, state.setValue(MOISTURE, 0));
player.awardStat(Stats.ITEM_USED.get(stack.getItem()));
Expand Down