mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
Forcing updates on light emitting blocks occasionally (every 2 seconds) to properly update lighting because MC's lighting needs to see a doctor.
This commit is contained in:
parent
1aa4eea798
commit
d99bc5815c
@ -26,6 +26,13 @@ trait TileEntity extends net.minecraft.tileentity.TileEntity {
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
override def updateEntity() {
|
||||
super.updateEntity()
|
||||
if (world.getWorldTime % 40 == 0 && block.getLightValue(world, x, y, z) > 0) {
|
||||
world.markBlockForUpdate(x, y, z)
|
||||
}
|
||||
}
|
||||
|
||||
override def validate() {
|
||||
super.validate()
|
||||
initialize()
|
||||
|
Loading…
x
Reference in New Issue
Block a user