Fixed water and wind turbine not using meta for localized name

This commit is contained in:
Robert S 2014-09-13 09:53:07 -04:00
parent e342cef7d6
commit d9b98ef4ee
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import resonant.content.prefab.itemblock.ItemBlockMetadata;
import resonantinduction.core.Settings;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import universalelectricity.api.core.grid.INodeProvider;
@ -32,6 +33,8 @@ public class TileWaterTurbine extends TileTurbine
public TileWaterTurbine()
{
super();
this.itemBlock_$eq(ItemBlockMetadata.class);
mechanicalNode.torque = defaultTorque;
mechanicalNode = new TurbineNode(this)
{

View file

@ -10,6 +10,7 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.BiomeGenOcean;
import net.minecraft.world.biome.BiomeGenPlains;
import net.minecraftforge.common.util.ForgeDirection;
import resonant.content.prefab.itemblock.ItemBlockMetadata;
import resonant.lib.utility.inventory.InventoryUtility;
import resonantinduction.core.Settings;
import universalelectricity.core.transform.vector.Vector3;
@ -27,6 +28,12 @@ public class TileWindTurbine extends TileTurbine
private float efficiency = 0;
private long windPower = 0;
public TileWindTurbine()
{
super();
this.itemBlock_$eq(ItemBlockMetadata.class);
}
@Override
public void update()