cBeaconEntity fix no world crash
This commit is contained in:
parent
af1a0188ec
commit
5e81024f89
@ -19,8 +19,11 @@ cBeaconEntity::cBeaconEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int
|
|||||||
m_SecondaryEffect(cEntityEffect::effNoEffect)
|
m_SecondaryEffect(cEntityEffect::effNoEffect)
|
||||||
{
|
{
|
||||||
ASSERT(a_BlockType == E_BLOCK_BEACON);
|
ASSERT(a_BlockType == E_BLOCK_BEACON);
|
||||||
|
if (m_World != nullptr)
|
||||||
|
{
|
||||||
UpdateBeacon();
|
UpdateBeacon();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user