Merge pull request #724 from worktycho/warningfixes
BlockEntities is warnings free
This commit is contained in:
commit
3decf7fc94
@ -126,6 +126,8 @@ void cCommandBlockEntity::SetRedstonePower(bool a_IsPowered)
|
||||
|
||||
bool cCommandBlockEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
UNUSED(a_Dt);
|
||||
UNUSED(a_Chunk);
|
||||
if (!m_ShouldExecute)
|
||||
{
|
||||
return false;
|
||||
|
@ -129,6 +129,7 @@ void cDropSpenserEntity::SetRedstonePower(bool a_IsPowered)
|
||||
|
||||
bool cDropSpenserEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
UNUSED(a_Dt);
|
||||
if (!m_ShouldDropSpense)
|
||||
{
|
||||
return false;
|
||||
|
@ -94,6 +94,8 @@ bool cFurnaceEntity::ContinueCooking(void)
|
||||
|
||||
bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
UNUSED(a_Dt);
|
||||
UNUSED(a_Chunk);
|
||||
if (m_FuelBurnTime <= 0)
|
||||
{
|
||||
// No fuel is burning, reset progressbars and bail out
|
||||
@ -110,7 +112,7 @@ bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
if (m_TimeCooked >= m_NeedCookTime)
|
||||
{
|
||||
// Finished smelting one item
|
||||
FinishOne(a_Chunk);
|
||||
FinishOne();
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,7 +210,7 @@ void cFurnaceEntity::BroadcastProgress(int a_ProgressbarID, short a_Value)
|
||||
|
||||
|
||||
/// One item finished cooking
|
||||
void cFurnaceEntity::FinishOne(cChunk & a_Chunk)
|
||||
void cFurnaceEntity::FinishOne()
|
||||
{
|
||||
m_TimeCooked = 0;
|
||||
|
||||
|
@ -126,7 +126,7 @@ protected:
|
||||
void BroadcastProgress(int a_ProgressbarID, short a_Value);
|
||||
|
||||
/// One item finished cooking
|
||||
void FinishOne(cChunk & a_Chunk);
|
||||
void FinishOne();
|
||||
|
||||
/// Starts burning a new fuel, if possible
|
||||
void BurnNewFuel(void);
|
||||
|
@ -58,6 +58,7 @@ bool cHopperEntity::GetOutputBlockPos(NIBBLETYPE a_BlockMeta, int & a_OutputX, i
|
||||
|
||||
bool cHopperEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
UNUSED(a_Dt);
|
||||
Int64 CurrentTick = a_Chunk.GetWorld()->GetWorldAge();
|
||||
|
||||
bool res = false;
|
||||
@ -73,6 +74,7 @@ bool cHopperEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
|
||||
void cHopperEntity::SaveToJson(Json::Value & a_Value)
|
||||
{
|
||||
UNUSED(a_Value);
|
||||
// TODO
|
||||
LOGWARNING("%s: Not implemented yet", __FUNCTION__);
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ cNoteEntity::cNoteEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_Wo
|
||||
|
||||
void cNoteEntity::UsedBy(cPlayer * a_Player)
|
||||
{
|
||||
UNUSED(a_Player);
|
||||
IncrementPitch();
|
||||
MakeSound();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user