Fixes #2575: Removed ITickable from AEBaseTile

Removed TileEventType.TICK, use ITickable when really needed.
The few tiles needing to tick and are not a grid tile now implement ITickable.
Charger is no longer implementing ITickable.
This commit is contained in:
yueh
2016-11-05 21:36:56 +01:00
parent fe1a67ffaa
commit 5328627d7a
11 changed files with 144 additions and 114 deletions
@@ -22,8 +22,6 @@ package appeng.tile.misc;
import net.minecraft.util.ITickable;
import appeng.tile.AEBaseTile;
import appeng.tile.TileEvent;
import appeng.tile.events.TileEventType;
import appeng.util.Platform;
@@ -38,8 +36,8 @@ public class TileLightDetector extends AEBaseTile implements ITickable
return this.lastLight > 0;
}
@TileEvent( TileEventType.TICK )
public void Tick_TileLightDetector()
@Override
public void update()
{
this.lastCheck++;
if( this.lastCheck > 30 )