From edae4af8cadd88a3c82212fd1a8f11b3d0e31806 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 21 Jan 2014 09:58:41 -0600 Subject: [PATCH] Renamed QuantumLeap --- me/cache/helpers/ConnectionWrapper.java | 14 ++++++++++++++ me/cluster/implementations/QuantumCluster.java | 17 +++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 me/cache/helpers/ConnectionWrapper.java diff --git a/me/cache/helpers/ConnectionWrapper.java b/me/cache/helpers/ConnectionWrapper.java new file mode 100644 index 000000000..56e9eb61e --- /dev/null +++ b/me/cache/helpers/ConnectionWrapper.java @@ -0,0 +1,14 @@ +package appeng.me.cache.helpers; + +import appeng.api.networking.IGridConnection; + +public class ConnectionWrapper +{ + + public IGridConnection connection; + + public ConnectionWrapper(IGridConnection gc) { + connection = gc; + } + +} \ No newline at end of file diff --git a/me/cluster/implementations/QuantumCluster.java b/me/cluster/implementations/QuantumCluster.java index 2dd35f18b..856f22570 100644 --- a/me/cluster/implementations/QuantumCluster.java +++ b/me/cluster/implementations/QuantumCluster.java @@ -11,10 +11,10 @@ import appeng.api.AEApi; import appeng.api.events.LocatableEventAnnounce; import appeng.api.events.LocatableEventAnnounce.LocatableEvent; import appeng.api.features.ILocatable; -import appeng.api.networking.IGridConnection; import appeng.api.networking.IGridHost; import appeng.api.networking.IGridNode; import appeng.api.util.WorldCoord; +import appeng.me.cache.helpers.ConnectionWrapper; import appeng.me.cluster.IAECluster; import appeng.tile.qnb.TileQuantumBridge; import appeng.util.iterators.ChainedIterator; @@ -22,13 +22,6 @@ import appeng.util.iterators.ChainedIterator; public class QuantumCluster implements ILocatable, IAECluster { - class QuantumLeap - { - - IGridConnection connection; - - }; - public WorldCoord min; public WorldCoord max; public boolean isDestroyed = false; @@ -37,7 +30,7 @@ public class QuantumCluster implements ILocatable, IAECluster private long thisSide; private long otherSide; - QuantumLeap connection; + ConnectionWrapper connection; public TileQuantumBridge Ring[]; private TileQuantumBridge center; @@ -142,8 +135,8 @@ public class QuantumCluster implements ILocatable, IAECluster return; } - QuantumLeap ql = sideA.connection = sideB.connection = new QuantumLeap(); - ql.connection = AEApi.instance().createGridConnection( sideA.getNode(), sideB.getNode() ); + ConnectionWrapper ql = sideA.connection = sideB.connection = new ConnectionWrapper( AEApi.instance().createGridConnection( sideA.getNode(), + sideB.getNode() ) ); } else shutdown = true; @@ -157,7 +150,7 @@ public class QuantumCluster implements ILocatable, IAECluster { connection.connection.destroy(); connection.connection = null; - connection = new QuantumLeap(); + connection = new ConnectionWrapper( null ); } } }