Skip to content

Commit

Permalink
Added missing double slabs for MC 1.8 and 1.9 #301
Browse files Browse the repository at this point in the history
  • Loading branch information
evildeeds committed Sep 24, 2017
1 parent b8f6c54 commit f768420
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mc/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ namespace mc {
set_color(CoalBlock, 0, color(20, 20, 20, 255));
set_color(PackedIce, 0, get_color(Ice));
// NOTE: See below for LargeFlowers
set_color(RedSandstone, 0, color(166, 85, 30, 255));
set_color(RedSandstoneDoubleSlab, 0, color(166, 85, 30, 255));
set_color(RedSandstone, 0, get_color(RedSandstoneDoubleSlab));
set_color(RedSandstoneStairs, 0, get_color(RedSandstone));
set_color(RedSandstoneSlab, 0, get_color(RedSandstone));
set_color(FenceGateSprouce, 0, color(102, 77, 46, 200));
Expand All @@ -461,6 +462,7 @@ namespace mc {
set_color(PurpurBlock, 0, color(104, 58, 103, 255));
set_color(PurpurPillar, 0, color(166, 124, 166, 255));
set_color(PurpurStairs, 0, color(140, 105, 142, 255));
set_color(PurpurDoubleSlab, 0, get_color(PurpurBlock));
set_color(PurpurSlab, 0, get_color(PurpurBlock));
set_color(EndStoneBricks, 0, color(223, 229, 170, 255));
set_color(CropsBeetroot, 0, color(76, 108, 49, 255));
Expand Down Expand Up @@ -651,6 +653,7 @@ namespace mc {
MaterialModes[LargeFlowers] = LargeFlowerBlock;
MaterialModes[RedSandstone] = Block;
MaterialModes[RedSandstoneStairs] = Block;
MaterialModes[RedSandstoneDoubleSlab] = Block;
MaterialModes[RedSandstoneSlab] = HalfBlock;
MaterialModes[FenceGateSprouce] = Block;
MaterialModes[FenceGateBrich] = Block;
Expand All @@ -673,6 +676,7 @@ namespace mc {
MaterialModes[PurpurBlock] = Block;
MaterialModes[PurpurPillar] = Block;
MaterialModes[PurpurStairs] = Block;
MaterialModes[PurpurDoubleSlab] = Block;
MaterialModes[PurpurSlab] = HalfBlock;
MaterialModes[EndStoneBricks] = Block;
MaterialModes[CropsBeetroot] = Block;
Expand Down
2 changes: 2 additions & 0 deletions src/mc/blocks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ namespace mc {
LargeFlowers = 0xAF,
RedSandstone = 0xB3,
RedSandstoneStairs = 0xB4,
RedSandstoneDoubleSlab = 0xB5,
RedSandstoneSlab = 0xB6,
FenceGateSprouce = 0xB7,
FenceGateBrich = 0xB8,
Expand All @@ -214,6 +215,7 @@ namespace mc {
PurpurBlock = 0xC9,
PurpurPillar = 0xCA,
PurpurStairs = 0xCB,
PurpurDoubleSlab = 0xCC,
PurpurSlab = 0xCD,
EndStoneBricks = 0xCE,
CropsBeetroot = 0xCF,
Expand Down

0 comments on commit f768420

Please sign in to comment.