Split TickHandler#onTick into more specific event handlers (#4477)
This commit is contained in:
@@ -64,7 +64,7 @@ public class Grid implements IGrid {
|
||||
|
||||
this.postEvent(new MENetworkPostCacheConstruction());
|
||||
|
||||
TickHandler.INSTANCE.addNetwork(this);
|
||||
TickHandler.instance().addNetwork(this);
|
||||
center.setGrid(this);
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ public class Grid implements IGrid {
|
||||
this.pivot = (GridNode) n.next();
|
||||
} else {
|
||||
this.pivot = null;
|
||||
TickHandler.INSTANCE.removeNetwork(this);
|
||||
TickHandler.instance().removeNetwork(this);
|
||||
this.myStorage.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ public class GridNode implements IGridNode, IPathItem {
|
||||
GridConnection.create(node, this, f.getOpposite());
|
||||
} catch (SecurityConnectionException e) {
|
||||
AELog.debug(e);
|
||||
TickHandler.INSTANCE.addCallable(node.getWorld(), new MachineSecurityBreak(this));
|
||||
TickHandler.instance().addCallable(node.getWorld(), new MachineSecurityBreak(this));
|
||||
|
||||
return;
|
||||
} catch (final FailedConnectionException e) {
|
||||
@@ -411,7 +411,7 @@ public class GridNode implements IGridNode, IPathItem {
|
||||
} catch (SecurityConnectionException e) {
|
||||
AELog.debug(e);
|
||||
|
||||
TickHandler.INSTANCE.addCallable(node.getWorld(), new MachineSecurityBreak(this));
|
||||
TickHandler.instance().addCallable(node.getWorld(), new MachineSecurityBreak(this));
|
||||
|
||||
return;
|
||||
} catch (final FailedConnectionException e) {
|
||||
|
||||
@@ -96,7 +96,7 @@ public class AENetworkProxy implements IGridBlock {
|
||||
|
||||
public void validate() {
|
||||
if (this.gp instanceof AEBaseTileEntity) {
|
||||
TickHandler.INSTANCE.addInit((AEBaseTileEntity) this.gp);
|
||||
TickHandler.instance().addInit((AEBaseTileEntity) this.gp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user