diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-05-28 20:08:23 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-05-28 20:08:23 +0200 |
commit | ad4172d21c291dd1ab791900df45dfce5368bbd2 (patch) | |
tree | 02304790e5f7ad5ea199adb67eb88e9886369b02 /src/BlockEntities | |
parent | Double chest window fix (#3735) (diff) | |
download | cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar.gz cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar.bz2 cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar.lz cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar.xz cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.tar.zst cuberite-ad4172d21c291dd1ab791900df45dfce5368bbd2.zip |
Diffstat (limited to 'src/BlockEntities')
-rw-r--r-- | src/BlockEntities/BrewingstandEntity.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BlockEntities/BrewingstandEntity.cpp b/src/BlockEntities/BrewingstandEntity.cpp index e357dbf98..27926c8df 100644 --- a/src/BlockEntities/BrewingstandEntity.cpp +++ b/src/BlockEntities/BrewingstandEntity.cpp @@ -141,7 +141,7 @@ bool cBrewingstandEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) } Recipe = m_CurrentBrewingRecipes[i]; - m_Contents.SetSlot(i, Recipe->Output->CopyOne()); + m_Contents.SetSlot(i, Recipe->Output.CopyOne()); } // Brewing process completed @@ -243,7 +243,7 @@ void cBrewingstandEntity::OnSlotChanged(cItemGrid * a_ItemGrid, int a_SlotNum) if (m_CurrentBrewingRecipes[i] != nullptr) { Recipe = m_CurrentBrewingRecipes[i]; - if (Recipe->Ingredient->IsEqual(GetSlot(bsIngredient)) && Recipe->Input->IsEqual(GetSlot(i))) + if (Recipe->Ingredient.IsEqual(GetSlot(bsIngredient)) && Recipe->Input.IsEqual(GetSlot(i))) { Stop = false; continue; @@ -255,7 +255,7 @@ void cBrewingstandEntity::OnSlotChanged(cItemGrid * a_ItemGrid, int a_SlotNum) { // Found a brewing recipe for the items m_CurrentBrewingRecipes[i] = Recipe; - m_Results[i] = Recipe->Output->CopyOne(); + m_Results[i] = Recipe->Output.CopyOne(); Stop = false; } } @@ -330,7 +330,7 @@ void cBrewingstandEntity::LoadRecipes(void) if (Recipe != nullptr) { m_CurrentBrewingRecipes[i] = Recipe; - m_Results[i] = Recipe->Output->CopyOne(); + m_Results[i] = Recipe->Output.CopyOne(); } } } |