Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
Missed some block states
Browse files Browse the repository at this point in the history
  • Loading branch information
Tz3r0 committed Mar 31, 2020
1 parent 2b062d3 commit 89eec6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ public static void placeBlock(IWorld world, BlockPos pos, String block, Map<Stri
world.setBlockState(pos, world.getBlockState(pos).with(Properties.UNSTABLE, properties.get("unstable").equals("TRUE")), 2);
} if (properties.get("face") != null) {
//TODO: Grindstone
world.setBlockState(pos, world.getBlockState(pos).with(Properties.WALL_MOUNT_LOCATION, WallMountLocation.valueOf(properties.get("face"))), 2);
world.setBlockState(pos, world.getBlockState(pos).with(Properties.WALL_MOUNT_LOCATION, WallMountLocation.valueOf(properties.get("face").toUpperCase())), 2);
} if (properties.get("distance") != null) {
//TODO: Scaffolding
world.setBlockState(pos, world.getBlockState(pos).with(Properties.DISTANCE_0_7, Integer.parseInt(properties.get("distance"))), 2);
} if (properties.get("attachment") != null) {
//TODO: Bell
world.setBlockState(pos, world.getBlockState(pos).with(Properties.ATTACHMENT, Attachment.valueOf(properties.get("attachment"))), 2);
world.setBlockState(pos, world.getBlockState(pos).with(Properties.ATTACHMENT, Attachment.valueOf(properties.get("attachment").toUpperCase())), 2);
} if (properties.get("axis") != null) {
//TODO: Bone_Block
world.setBlockState(pos, world.getBlockState(pos).with(Properties.AXIS, Direction.Axis.fromName(axis)), 2);
Expand Down

0 comments on commit 89eec6c

Please sign in to comment.