mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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(Items.bucket, new DispenserHandlerFillBucket());
|
||||||
Util.registerDispenserHandler(InitItems.itemFertilizer, new DispenserHandlerFertilize());
|
Util.registerDispenserHandler(InitItems.itemFertilizer, new DispenserHandlerFertilize());
|
||||||
|
|
||||||
if(LaserRelayConnectionHandler.getInstance() == null){
|
|
||||||
LaserRelayConnectionHandler.setInstance(new LaserRelayConnectionHandler());
|
|
||||||
}
|
|
||||||
|
|
||||||
WorldData.init(event.getServer());
|
WorldData.init(event.getServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,10 @@ public class LaserRelayConnectionHandler{
|
||||||
public ConcurrentSet<Network> networks = new ConcurrentSet<Network>();
|
public ConcurrentSet<Network> networks = new ConcurrentSet<Network>();
|
||||||
|
|
||||||
public static LaserRelayConnectionHandler getInstance(){
|
public static LaserRelayConnectionHandler getInstance(){
|
||||||
return instance;
|
if(instance == null){
|
||||||
|
instance = new LaserRelayConnectionHandler();
|
||||||
}
|
}
|
||||||
|
return instance;
|
||||||
public static void setInstance(LaserRelayConnectionHandler i){
|
|
||||||
instance = i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public NBTTagCompound writeNetworkToNBT(Network network){
|
public NBTTagCompound writeNetworkToNBT(Network network){
|
||||||
|
|
Loading…
Reference in a new issue