From 50e27d121b309a4701ba9dc76965dfdf13043088 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Thu, 8 May 2014 14:41:39 -0500 Subject: [PATCH] Client doesn't need to init tiles, thats for the networks on the server. --- hooks/TickHandler.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hooks/TickHandler.java b/hooks/TickHandler.java index c59c8970..eeb43381 100644 --- a/hooks/TickHandler.java +++ b/hooks/TickHandler.java @@ -56,18 +56,19 @@ public class TickHandler public void addInit(AEBaseTile tile) { - getRepo().tiles.add( tile ); + if ( Platform.isServer() ) // for no there is no reason to care about this on the client... + getRepo().tiles.add( tile ); } public void addNetwork(Grid grid) { - if ( Platform.isServer() ) + if ( Platform.isServer() ) // for no there is no reason to care about this on the client... getRepo().networks.add( grid ); } public void removeNetwork(Grid grid) { - if ( Platform.isServer() ) + if ( Platform.isServer() ) // for no there is no reason to care about this on the client... getRepo().networks.remove( grid ); } @@ -84,7 +85,7 @@ public class TickHandler @SubscribeEvent public void unloadWorld(WorldEvent.Unload ev) { - if ( Platform.isServer() ) + if ( Platform.isServer() ) // for no there is no reason to care about this on the client... { LinkedList toDestroy = new LinkedList(); @@ -105,7 +106,7 @@ public class TickHandler @SubscribeEvent public void onTick(TickEvent ev) { - if ( ev.type == Type.SERVER && ev.phase == Phase.END ) + if ( ev.type == Type.SERVER && ev.phase == Phase.END ) // for no there is no reason to care about this on the client... { HandlerRep repo = getRepo(); while (!repo.tiles.isEmpty())