Skip to content

Commit

Permalink
Added new stair types to chair defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Feb 5, 2017
1 parent 87e1686 commit d6d72e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/sk89q/craftbook/mechanics/Chair.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ public void loadConfiguration (YAMLProcessor config, String path) {
chairHealAmount = config.getDouble(path + "regen-health-amount", 1);

config.setComment(path + "blocks", "A list of blocks that can be sat on.");
chairBlocks = ItemInfo.parseListFromString(config.getStringList(path + "blocks", Arrays.asList("WOOD_STAIRS", "COBBLESTONE_STAIRS", "BRICK_STAIRS", "SMOOTH_STAIRS", "NETHER_BRICK_STAIRS", "SANDSTONE_STAIRS", "SPRUCE_WOOD_STAIRS", "BIRCH_WOOD_STAIRS", "JUNGLE_WOOD_STAIRS", "QUARTZ_STAIRS", "ACACIA_STAIRS")));
chairBlocks = ItemInfo.parseListFromString(config.getStringList(path + "blocks", Arrays.asList("WOOD_STAIRS", "COBBLESTONE_STAIRS",
"BRICK_STAIRS", "SMOOTH_STAIRS", "NETHER_BRICK_STAIRS", "SANDSTONE_STAIRS", "SPRUCE_WOOD_STAIRS", "BIRCH_WOOD_STAIRS",
"JUNGLE_WOOD_STAIRS", "QUARTZ_STAIRS", "ACACIA_STAIRS", "DARK_OAK_STAIRS", "PURPUR_STAIRS", "RED_SANDSTONE_STAIRS")));

config.setComment(path + "face-correct-direction", "When the player sits, automatically face them the direction of the chair. (If possible)");
chairFacing = config.getBoolean(path + "face-correct-direction", true);
Expand Down

0 comments on commit d6d72e3

Please sign in to comment.