From 21068011c6d8a4794eec86794d6b9612a265f03a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 2 Oct 2020 14:22:17 +0100 Subject: Remove SetProperty(...cPlayer) Enchantment table, anvil windows are already opened one per-player. --- src/BlockEntities/BrewingstandEntity.cpp | 2 +- src/BlockEntities/BrewingstandEntity.h | 2 +- src/BlockEntities/FurnaceEntity.cpp | 2 +- src/BlockEntities/FurnaceEntity.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/BlockEntities') 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(); -- cgit v1.2.3