Daylight sensors
This commit is contained in:
parent
5b2ac381b6
commit
acb5a36a6a
@ -907,8 +907,7 @@ void cRedstoneSimulator::HandleDaylightSensor(int a_BlockX, int a_BlockY, int a_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG("%i", m_World.GetSkyDarkness());
|
if (m_World.GetSkyDarkness() < 8)
|
||||||
if (m_World.GetSkyDarkness() > 10)
|
|
||||||
{
|
{
|
||||||
SetAllDirsAsPowered(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_DAYLIGHT_SENSOR);
|
SetAllDirsAsPowered(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_DAYLIGHT_SENSOR);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user