More fixes
This commit is contained in:
@@ -19,7 +19,7 @@ import refinedstorage.proxy.CommonProxy;
|
||||
@Mod(modid = RefinedStorage.ID, version = RefinedStorage.VERSION)
|
||||
public final class RefinedStorage {
|
||||
public static final String ID = "refinedstorage";
|
||||
public static final String VERSION = "0.7.17-pre1";
|
||||
public static final String VERSION = "0.7.17";
|
||||
|
||||
public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel(ID);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ public abstract class TileSlave extends TileBase implements INetworkSlave, ISync
|
||||
|
||||
if (network == null) {
|
||||
if (controller != null) {
|
||||
connect(world, network);
|
||||
connect(world, controller);
|
||||
}
|
||||
} else {
|
||||
if (controller == null) {
|
||||
|
||||
@@ -165,13 +165,13 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
||||
|
||||
wirelessGridHandler.update();
|
||||
|
||||
if (type == EnumControllerType.NORMAL && energyUsage > 0) {
|
||||
if (getType() == EnumControllerType.NORMAL && energyUsage > 0) {
|
||||
if (energy.getEnergyStored() - energyUsage >= 0) {
|
||||
energy.extractEnergy(energyUsage, false);
|
||||
} else {
|
||||
energy.setEnergyStored(0);
|
||||
}
|
||||
} else if (type == EnumControllerType.CREATIVE) {
|
||||
} else if (getType() == EnumControllerType.CREATIVE) {
|
||||
energy.setEnergyStored(energy.getMaxEnergyStored());
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"modid": "refinedstorage",
|
||||
"name": "Refined Storage",
|
||||
"description": "A Minecraft mod all about storage.",
|
||||
"version": "0.7.17-pre1",
|
||||
"version": "0.7.17",
|
||||
"mcversion": "1.9.4",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
|
||||
Reference in New Issue
Block a user