Skip to content

Commit

Permalink
Fixed log stripping axis
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Apr 17, 2024
1 parent f0eb882 commit 28ffdea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -59,7 +59,7 @@ protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockSt
@Override
public BlockState getToolModifiedState(BlockState state, UseOnContext context, ToolAction toolAction, boolean simulate) {
if (this.canBeStripped) {
return toolAction == ToolActions.AXE_STRIP ? AtumBlocks.STRIPPED_DEADWOOD_LOG.get().defaultBlockState() : super.getToolModifiedState(state, context, toolAction, simulate);
return toolAction == ToolActions.AXE_STRIP ? AtumBlocks.STRIPPED_DEADWOOD_LOG.get().defaultBlockState().setValue(RotatedPillarBlock.AXIS, state.getValue(RotatedPillarBlock.AXIS)) : super.getToolModifiedState(state, context, toolAction, simulate);
} else {
return null;
}
Expand Down
Expand Up @@ -19,6 +19,6 @@ public PalmLog() {

@Override
public BlockState getToolModifiedState(BlockState state, UseOnContext context, ToolAction toolAction, boolean simulate) {
return toolAction == ToolActions.AXE_STRIP ? AtumBlocks.STRIPPED_PALM_LOG.get().defaultBlockState() : super.getToolModifiedState(state, context, toolAction, simulate);
return toolAction == ToolActions.AXE_STRIP ? AtumBlocks.STRIPPED_PALM_LOG.get().defaultBlockState().setValue(RotatedPillarBlock.AXIS, state.getValue(RotatedPillarBlock.AXIS)) : super.getToolModifiedState(state, context, toolAction, simulate);
}
}

0 comments on commit 28ffdea

Please sign in to comment.