Skip to content

Commit

Permalink
made the multiblok return sucess upon a successful strucutre validati…
Browse files Browse the repository at this point in the history
…on in the interact method
  • Loading branch information
Trinsdar committed Sep 21, 2023
1 parent 50a0850 commit f381fbc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public void onFirstTick() {
@Override
public InteractionResult onInteractBoth(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit, @Nullable AntimatterToolType type) {
if (!validStructure && checkingStructure == 0){
checkStructure();
if (checkStructure()){
return InteractionResult.SUCCESS;
}
}
return super.onInteractBoth(state, world, pos, player, hand, hit, type);
}
Expand Down

0 comments on commit f381fbc

Please sign in to comment.