From aab946140be6c9eb35bd678b4729b67c13e4255d Mon Sep 17 00:00:00 2001 From: AEnterprise Date: Sun, 14 Sep 2014 16:18:57 +0200 Subject: [PATCH] fix style, remove unnecesairy check --- common/buildcraft/core/TileBuildCraft.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/buildcraft/core/TileBuildCraft.java b/common/buildcraft/core/TileBuildCraft.java index ba4d77ad..5ad63044 100644 --- a/common/buildcraft/core/TileBuildCraft.java +++ b/common/buildcraft/core/TileBuildCraft.java @@ -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 updateWrappers = new HashMap(); @@ -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")); } }