added added Door, Trapdoor and Pane

This commit is contained in:
2024-05-14 15:21:18 +02:00
parent 752ee956eb
commit 6b2ee1dc83
16 changed files with 853 additions and 15 deletions

View File

@@ -79,7 +79,7 @@ public abstract class ReFramedDoubleBlock extends ReFramedBlock {
@Override
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
if (!canUse(world, pos, player)) return superUse(state, world, pos, player, hand, hit);
if (!canUse(world, pos, player)) return ActionResult.PASS;
ActionResult result = BlockHelper.useUpgrade(state, world, pos, player, hand);
if (result.isAccepted()) return result;
return BlockHelper.useCamo(state, world, pos, player, hand, hit, getHitShape(state, hit));