Skip to content

Commit

Permalink
wip: Continue port to Minecraft 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Nov 1, 2024
1 parent e1d935b commit 2ce221a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockSt
@Override
protected InteractionResult useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult blockHitResult) {
if (itemStack.isEmpty()) {
return InteractionResult.PASS;
return InteractionResult.TRY_WITH_EMPTY_HAND;
}

if (!(level.getBlockEntity(pos) instanceof AbstractAutoSieveBlockEntity autoSieve)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
@Override
protected InteractionResult useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult blockHitResult) {
if (itemStack.isEmpty()) {
return InteractionResult.PASS;
return InteractionResult.TRY_WITH_EMPTY_HAND;
}

if (!(level.getBlockEntity(pos) instanceof HeavySieveBlockEntity heavySieve)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
@Override
protected InteractionResult useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult blockHitResult) {
if (itemStack.isEmpty()) {
return InteractionResult.PASS;
return InteractionResult.TRY_WITH_EMPTY_HAND;
}

if (!(level.getBlockEntity(pos) instanceof WoodenCrucibleBlockEntity woodenCrucible)) {
Expand Down

0 comments on commit 2ce221a

Please sign in to comment.