Skip to content

Commit

Permalink
Actually fix empty locked bins not accepting items when double clicke…
Browse files Browse the repository at this point in the history
…d with an empty hand
  • Loading branch information
pupnewfster committed Mar 12, 2024
1 parent 8910190 commit 283053e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mekanism/common/block/basic/BlockBin.java
Expand Up @@ -98,7 +98,7 @@ public InteractionResult use(@NotNull BlockState state, @NotNull Level world, @N
//Note: We set the add ticks regardless so that we can allow double right-clicking to insert items from the player's inventory
// without requiring them to first be holding the same item
bin.addTicks = 5;
} else if (bin.addTicks > 0 && bin.getItemCount() > 0) {
} else if (bin.addTicks > 0 && !storedStack.isEmpty()) {
NonNullList<ItemStack> inv = player.getInventory().items;
for (int i = 0; i < inv.size(); i++) {
if (binSlot.getCount() == binMaxSize) {
Expand Down

0 comments on commit 283053e

Please sign in to comment.