From 019680d43de9e4bb1a11780273a474ba560d7a9b Mon Sep 17 00:00:00 2001 From: Chai <7232280+Chailotl@users.noreply.github.com> Date: Sat, 27 Jul 2024 22:12:49 -0400 Subject: [PATCH] Removed empty hand check --- .../java/dev/hephaestus/glowcase/block/ItemDisplayBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/hephaestus/glowcase/block/ItemDisplayBlock.java b/src/main/java/dev/hephaestus/glowcase/block/ItemDisplayBlock.java index 1d5974b..e0e3dbe 100644 --- a/src/main/java/dev/hephaestus/glowcase/block/ItemDisplayBlock.java +++ b/src/main/java/dev/hephaestus/glowcase/block/ItemDisplayBlock.java @@ -54,7 +54,7 @@ public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos po protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) { if(!(world.getBlockEntity(pos) instanceof ItemDisplayBlockEntity be)) return ActionResult.CONSUME; - if (be.canGiveTo(player) && player.getStackInHand(Hand.MAIN_HAND).isEmpty()) { + if (be.canGiveTo(player)) { if(!world.isClient) be.giveTo(player); return ActionResult.SUCCESS; } @@ -96,4 +96,4 @@ public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { public BlockEntityTicker getTicker(World world, BlockState state, BlockEntityType type) { return checkType(type, Glowcase.ITEM_DISPLAY_BLOCK_ENTITY.get(), ItemDisplayBlockEntity::tick); } -} \ No newline at end of file +}