fix style, remove unnecesairy check

This commit is contained in:
AEnterprise 2014-09-14 16:18:57 +02:00
parent 5e526416c4
commit aab946140b

View file

@ -22,6 +22,8 @@ import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import cofh.api.energy.IEnergyHandler;
import buildcraft.BuildCraftCore;
import buildcraft.api.power.IPowerReceptor;
import buildcraft.core.network.BuildCraftPacket;
@ -32,8 +34,6 @@ import buildcraft.core.network.PacketUpdate;
import buildcraft.core.network.TilePacketWrapper;
import buildcraft.core.utils.Utils;
import cofh.api.energy.IEnergyHandler;
public abstract class TileBuildCraft extends TileEntity implements ISynchronizedTile, IEnergyHandler {
@SuppressWarnings("rawtypes")
private static Map<Class, TilePacketWrapper> updateWrappers = new HashMap<Class, TilePacketWrapper>();
@ -147,7 +147,7 @@ public abstract class TileBuildCraft extends TileEntity implements ISynchronized
if (nbt.hasKey("owner")) {
owner = nbt.getString("owner");
}
if (battery != null && nbt.hasKey("battery")) {
if (battery != null) {
battery.readFromNBT(nbt.getCompoundTag("battery"));
}
}