diff --git a/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java b/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java index 97b73f9ea..13c3ff600 100755 --- a/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java +++ b/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java @@ -47,7 +47,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; -import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.util.ForgeDirection; import java.util.LinkedHashSet; @@ -82,6 +81,17 @@ public class TileAlvearyPlain extends TileAlveary implements ISidedInventory, IS player.openGui(ForestryAPI.instance, GuiId.AlvearyGUI.ordinal(), worldObj, masterX, masterY, masterZ); } + @Override + public void validate() { + super.validate(); + setBiomeInformation(); + } + + private void setBiomeInformation() { + this.biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + setErrorState(EnumErrorCode.OK); + } + /* LOADING & SAVING */ @Override public void readFromNBT(NBTTagCompound nbttagcompound) { @@ -115,8 +125,7 @@ public class TileAlvearyPlain extends TileAlveary implements ISidedInventory, IS @Override public void initialize() { super.initialize(); - this.biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); - setErrorState(EnumErrorCode.OK); + setBiomeInformation(); } @Override