Fixed style issues
This commit is contained in:
parent
a0ba7426c6
commit
6acddd0cad
@ -61,7 +61,10 @@ public:
|
||||
|
||||
virtual void SetRedstonePower(bool a_Value)
|
||||
{
|
||||
if (a_Value) MakeSound();
|
||||
if (a_Value)
|
||||
{
|
||||
MakeSound();
|
||||
}
|
||||
}
|
||||
|
||||
static const char * GetClassStatic(void) { return "cNoteEntity"; }
|
||||
|
@ -8,6 +8,6 @@ public:
|
||||
|
||||
virtual ~cRedstonePoweredEntity() {};
|
||||
|
||||
/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
|
||||
/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
|
||||
virtual void SetRedstonePower(bool a_IsPowered) = 0;
|
||||
};
|
||||
|
@ -2142,10 +2142,10 @@ bool cChunk::DoWithRedstonePoweredEntityAt(int a_BlockX, int a_BlockY, int a_Blo
|
||||
case E_BLOCK_DROPPER:
|
||||
case E_BLOCK_DISPENSER:
|
||||
case E_BLOCK_NOTE_BLOCK:
|
||||
break;
|
||||
break;
|
||||
default:
|
||||
// There is a block entity here, but of different type. No other block entity can be here, so we can safely bail out
|
||||
return false;
|
||||
// There is a block entity here, but of different type. No other block entity can be here, so we can safely bail out
|
||||
return false;
|
||||
}
|
||||
|
||||
if (a_Callback.Item((cRedstonePoweredEntity *)*itr))
|
||||
|
Loading…
Reference in New Issue
Block a user