summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BrewingstandEntity.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-05-28 20:08:23 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-28 20:08:23 +0200
commitad4172d21c291dd1ab791900df45dfce5368bbd2 (patch)
tree02304790e5f7ad5ea199adb67eb88e9886369b02 /src/BlockEntities/BrewingstandEntity.cpp
parentDouble chest window fix (#3735) (diff)
downloadcuberite-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 '')
-rw-r--r--src/BlockEntities/BrewingstandEntity.cpp8
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();
}
}
}