mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fix Laser Relay Network. Damn it.
This commit is contained in:
parent
1cab983658
commit
42a6401c0d
2 changed files with 3 additions and 8 deletions
|
@ -117,10 +117,6 @@ public class ActuallyAdditions{
|
|||
Util.registerDispenserHandler(Items.bucket, new DispenserHandlerFillBucket());
|
||||
Util.registerDispenserHandler(InitItems.itemFertilizer, new DispenserHandlerFertilize());
|
||||
|
||||
if(LaserRelayConnectionHandler.getInstance() == null){
|
||||
LaserRelayConnectionHandler.setInstance(new LaserRelayConnectionHandler());
|
||||
}
|
||||
|
||||
WorldData.init(event.getServer());
|
||||
}
|
||||
|
||||
|
|
|
@ -31,13 +31,12 @@ public class LaserRelayConnectionHandler{
|
|||
public ConcurrentSet<Network> networks = new ConcurrentSet<Network>();
|
||||
|
||||
public static LaserRelayConnectionHandler getInstance(){
|
||||
if(instance == null){
|
||||
instance = new LaserRelayConnectionHandler();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static void setInstance(LaserRelayConnectionHandler i){
|
||||
instance = i;
|
||||
}
|
||||
|
||||
public NBTTagCompound writeNetworkToNBT(Network network){
|
||||
NBTTagList list = new NBTTagList();
|
||||
for(ConnectionPair pair : network.connections){
|
||||
|
|
Loading…
Reference in a new issue