diff --git a/me/cache/helpers/ConnectionWrapper.java b/me/cache/helpers/ConnectionWrapper.java new file mode 100644 index 00000000..56e9eb61 --- /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 2dd35f18..856f2257 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 ); } } }