Skip to content

Commit

Permalink
Fixed a bug where blocks would compile incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
BoogieMonster1O1 committed Jun 13, 2020
1 parent 2c969a8 commit 36e261c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fabric-1.15.2/templates/block.java.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public class ${name} extends Block {
</#if>


<#if data.rotationMode != 0>
@Override
public BlockState getPlacementState(ItemPlacementContext context) {
<#if data.rotationMode == 1>
Expand All @@ -107,6 +108,7 @@ public class ${name} extends Block {
return this.getDefaultState().with(FACING, facing);
</#if>
}
</#if>

<#if data.mx != 0 || data.my != 0 || data.mz != 0 || data.Mx != 1 || data.My != 1 || data.Mz != 1>
@Override public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, EntityContext context) {
Expand Down

0 comments on commit 36e261c

Please sign in to comment.