Skip to content

Commit

Permalink
Fixed compatibility with Hydrogen
Browse files Browse the repository at this point in the history
  • Loading branch information
Binero committed Feb 11, 2021
1 parent e072cb6 commit 4411ddf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.github.foundationgames.sandwichable.blocks;

import net.minecraft.state.property.BooleanProperty;

public class BlockProperties {
public static final BooleanProperty ON = BooleanProperty.of("on");
public static final BooleanProperty SNIPPED = BooleanProperty.of("snipped");
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public int getComparatorOutput(BlockState state, World world, BlockPos pos) {

static {
SHAPE = createCuboidShape(1, 0, 1, 15, 16, 15);
ON = BooleanProperty.of("on");
ON = BlockProperties.ON;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> builder)
}

static {
SNIPPED = BooleanProperty.of("snipped");
SNIPPED = BlockProperties.SNIPPED;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> builder)
}

static {
SNIPPED = BooleanProperty.of("snipped");
SNIPPED = BlockProperties.SNIPPED;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public BlockState getPlacementState(ItemPlacementContext ctx) {
Block.createCuboidShape(2, 1, 4, 14, 10, 12)
);

ON = BooleanProperty.of("on");
ON = BlockProperties.ON;
WATERLOGGED = Properties.WATERLOGGED;
}
}

0 comments on commit 4411ddf

Please sign in to comment.