diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-10-02 15:22:17 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2020-10-03 17:54:14 +0200 |
commit | 21068011c6d8a4794eec86794d6b9612a265f03a (patch) | |
tree | f8c6bf1d8760a02945c0622ff2d237ff3b737030 /src/BlockEntities | |
parent | Fix instant mining of blocks not being recognised, tweak anti-cheat (#4938) (diff) | |
download | cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.gz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.bz2 cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.lz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.xz cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.tar.zst cuberite-21068011c6d8a4794eec86794d6b9612a265f03a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/BrewingstandEntity.cpp | 2 | ||||
-rw-r--r-- | src/BlockEntities/BrewingstandEntity.h | 2 | ||||
-rw-r--r-- | src/BlockEntities/FurnaceEntity.cpp | 2 | ||||
-rw-r--r-- | src/BlockEntities/FurnaceEntity.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/BlockEntities/BrewingstandEntity.cpp b/src/BlockEntities/BrewingstandEntity.cpp index 27dabf177..9c43f257f 100644 --- a/src/BlockEntities/BrewingstandEntity.cpp +++ b/src/BlockEntities/BrewingstandEntity.cpp @@ -189,7 +189,7 @@ bool cBrewingstandEntity::UsedBy(cPlayer * a_Player) -void cBrewingstandEntity::BroadcastProgress(short a_ProgressbarID, short a_Value) +void cBrewingstandEntity::BroadcastProgress(size_t a_ProgressbarID, short a_Value) { cWindow * Window = GetWindow(); if (Window != nullptr) diff --git a/src/BlockEntities/BrewingstandEntity.h b/src/BlockEntities/BrewingstandEntity.h index 44d977966..90c6003df 100644 --- a/src/BlockEntities/BrewingstandEntity.h +++ b/src/BlockEntities/BrewingstandEntity.h @@ -137,7 +137,7 @@ protected: short m_RemainingFuel; /** Sends the specified progressbar value to all clients of the window */ - void BroadcastProgress(short a_ProgressbarID, short a_Value); + void BroadcastProgress(size_t a_ProgressbarID, short a_Value); // /** Broadcasts progressbar updates, if needed */ void UpdateProgressBars(bool a_ForceUpdate = false); diff --git a/src/BlockEntities/FurnaceEntity.cpp b/src/BlockEntities/FurnaceEntity.cpp index e8e981065..b325f4e5c 100644 --- a/src/BlockEntities/FurnaceEntity.cpp +++ b/src/BlockEntities/FurnaceEntity.cpp @@ -192,7 +192,7 @@ int cFurnaceEntity::GetAndResetReward(void) -void cFurnaceEntity::BroadcastProgress(short a_ProgressbarID, short a_Value) +void cFurnaceEntity::BroadcastProgress(size_t a_ProgressbarID, short a_Value) { cWindow * Window = GetWindow(); if (Window != nullptr) diff --git a/src/BlockEntities/FurnaceEntity.h b/src/BlockEntities/FurnaceEntity.h index 64b76a9ec..454c23785 100644 --- a/src/BlockEntities/FurnaceEntity.h +++ b/src/BlockEntities/FurnaceEntity.h @@ -145,7 +145,7 @@ protected: bool m_IsLoading; /** Sends the specified progressbar value to all clients of the window */ - void BroadcastProgress(short a_ProgressbarID, short a_Value); + void BroadcastProgress(size_t a_ProgressbarID, short a_Value); /** One item finished cooking */ void FinishOne(); |