summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BrewingstandEntity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2023-03-22 11:20:16 +0100
committerGitHub <noreply@github.com>2023-03-22 11:20:16 +0100
commitc747b4911ed4b1833d7f400d62d1835aba704278 (patch)
tree55431c188c73055f0e0b0db8fdbb032675cf4431 /src/BlockEntities/BrewingstandEntity.h
parentAdded small embedded devices to README (diff)
downloadcuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar.gz
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar.bz2
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar.lz
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar.xz
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.tar.zst
cuberite-c747b4911ed4b1833d7f400d62d1835aba704278.zip
Diffstat (limited to 'src/BlockEntities/BrewingstandEntity.h')
-rw-r--r--src/BlockEntities/BrewingstandEntity.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BlockEntities/BrewingstandEntity.h b/src/BlockEntities/BrewingstandEntity.h
index 67a6da1a3..66eaa920d 100644
--- a/src/BlockEntities/BrewingstandEntity.h
+++ b/src/BlockEntities/BrewingstandEntity.h
@@ -78,7 +78,7 @@ public:
const cItem & GetFuelSlot(void) const { return GetSlot(bsFuel); }
/** Get the expected result item for the given slot number */
- const cItem & GetResultItem(int a_SlotNumber) { return m_Results[a_SlotNumber]; }
+ const cItem & GetResultItem(size_t a_SlotNumber) { return m_Results[a_SlotNumber]; }
/** Sets the item in the left bottle slot */
void SetLeftBottleSlot(const cItem & a_Item) { SetSlot(bsLeftBottle, a_Item); }
@@ -118,10 +118,10 @@ protected:
const short m_NeedBrewingTime = 400;
/** Store the current brewing recipes */
- const cBrewingRecipes::cRecipe * m_CurrentBrewingRecipes[3] = {};
+ std::array<const cBrewingRecipes::cRecipe *, 3> m_CurrentBrewingRecipes = {};
/** Result items for the bottle inputs */
- cItem m_Results[3];
+ std::array<cItem, 3> m_Results;
/** Amount of ticks that the current item has been brewed */
short m_TimeBrewed;