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

Commit

Permalink
actually fixed sound when taking out items from mass storages this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Nov 9, 2023
1 parent bd9bb32 commit 892e96d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ public InteractionResult onInteractServer(BlockState state, Level world, BlockPo
}
}
if (sucess) {
world.playSound(null, this.getBlockPos(), SoundEvents.ITEM_PICKUP, SoundSource.PLAYERS, 1.0F, 1.0F);
return InteractionResult.SUCCESS;
}
}
Expand Down Expand Up @@ -210,7 +209,7 @@ public InteractionResult onInteractServer(BlockState state, Level world, BlockPo
}

handler.extractItem(0, extract, false);
world.playSound(null, this.getBlockPos(), SoundEvents.UI_BUTTON_CLICK, SoundSource.PLAYERS, 1.0F, 1.0F);
world.playSound(null, this.getBlockPos(), SoundEvents.ITEM_PICKUP, SoundSource.PLAYERS, 1.0F, 1.0F);
return InteractionResult.SUCCESS;
}
return InteractionResult.CONSUME;
Expand Down

0 comments on commit 892e96d

Please sign in to comment.