parent
1d8a22cb7b
commit
ffe7dae4fc
@ -79,15 +79,15 @@ HayBale = Wheat, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3
|
|||||||
SnowBlock = SnowBall, 1:1, 1:2, 2:1, 2:2
|
SnowBlock = SnowBall, 1:1, 1:2, 2:1, 2:2
|
||||||
ClayBlock = Clay, 1:1, 1:2, 2:1, 2:2
|
ClayBlock = Clay, 1:1, 1:2, 2:1, 2:2
|
||||||
BrickBlock = Brick, 1:1, 1:2, 2:1, 2:2
|
BrickBlock = Brick, 1:1, 1:2, 2:1, 2:2
|
||||||
|
PolishedGranite, 4 = Granite, 1:1, 1:2, 2:1, 2:2
|
||||||
|
PolishedDiorite, 4 = Diorite, 1:1, 1:2, 2:1, 2:2
|
||||||
|
PolishedAndesite, 4 = Andesite, 1:1, 1:2, 2:1, 2:2
|
||||||
StoneBrick, 4 = Stone, 1:1, 1:2, 2:1, 2:2
|
StoneBrick, 4 = Stone, 1:1, 1:2, 2:1, 2:2
|
||||||
BookShelf = Planks, 1:1, 2:1, 3:1, 1:3, 2:3, 3:3 | Book, 1:2, 2:2, 3:2
|
BookShelf = Planks, 1:1, 2:1, 3:1, 1:3, 2:3, 3:3 | Book, 1:2, 2:2, 3:2
|
||||||
Sandstone, 4 = Sand, 1:1, 1:2, 2:1, 2:2
|
Sandstone, 4 = Sand, 1:1, 1:2, 2:1, 2:2
|
||||||
SmoothSandstone, 4 = Sandstone, 1:1, 1:2, 2:1, 2:2
|
SmoothSandstone, 4 = Sandstone, 1:1, 1:2, 2:1, 2:2
|
||||||
OrnamentSandstone = SandstoneSlab, 1:1, 1:2
|
OrnamentSandstone = SandstoneSlab, 1:1, 1:2
|
||||||
JackOLantern = Pumpkin, 1:1 | Torch, 1:2
|
JackOLantern = Pumpkin, 1:1 | Torch, 1:2
|
||||||
PolishedGranite, 4 = Granite, 1:1, 1:2, 2:1, 2:2
|
|
||||||
PolishedDiorite, 4 = Diorite, 1:1, 1:2, 2:1, 2:2
|
|
||||||
PolishedAndesite, 4 = Andesite, 1:1, 1:2, 2:1, 2:2
|
|
||||||
CoarsedDirt, 4 = Dirt, 1:1, 2:2 | Gravel, 1:2, 2:1
|
CoarsedDirt, 4 = Dirt, 1:1, 2:2 | Gravel, 1:2, 2:1
|
||||||
CoarsedDirt, 4 = Gravel, 1:1, 2:2 | Dirt, 1:2, 2:1
|
CoarsedDirt, 4 = Gravel, 1:1, 2:2 | Dirt, 1:2, 2:1
|
||||||
SlimeBlock = Slimeball, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3
|
SlimeBlock = Slimeball, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3
|
||||||
|
@ -353,7 +353,7 @@ bool cBlockHandler::GetPlacementBlockTypeMeta(
|
|||||||
{
|
{
|
||||||
// By default, all blocks can be placed and the meta is copied over from the item's damage value:
|
// By default, all blocks can be placed and the meta is copied over from the item's damage value:
|
||||||
a_BlockType = m_BlockType;
|
a_BlockType = m_BlockType;
|
||||||
a_BlockMeta = (NIBBLETYPE)(a_Player->GetEquippedItem().m_ItemDamage & 0x0f);
|
a_BlockMeta = static_cast<NIBBLETYPE>(a_Player->GetEquippedItem().m_ItemDamage & 0x0f);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,6 +366,7 @@ void cCraftingRecipes::ClearRecipes(void)
|
|||||||
|
|
||||||
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
|
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
|
||||||
{
|
{
|
||||||
|
// Remove any spaces within the line:
|
||||||
AString RecipeLine(a_RecipeLine);
|
AString RecipeLine(a_RecipeLine);
|
||||||
RecipeLine.erase(std::remove_if(RecipeLine.begin(), RecipeLine.end(), isspace), RecipeLine.end());
|
RecipeLine.erase(std::remove_if(RecipeLine.begin(), RecipeLine.end(), isspace), RecipeLine.end());
|
||||||
|
|
||||||
|
@ -757,7 +757,7 @@ bool cItemHandler::GetPlacementBlockTypeMeta(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cBlockHandler * BlockH = BlockHandler((BLOCKTYPE)m_ItemType);
|
cBlockHandler * BlockH = BlockHandler(static_cast<BLOCKTYPE>(m_ItemType));
|
||||||
cChunkInterface ChunkInterface(a_World->GetChunkMap());
|
cChunkInterface ChunkInterface(a_World->GetChunkMap());
|
||||||
return BlockH->GetPlacementBlockTypeMeta(
|
return BlockH->GetPlacementBlockTypeMeta(
|
||||||
ChunkInterface, a_Player,
|
ChunkInterface, a_Player,
|
||||||
|
Loading…
Reference in New Issue
Block a user