Fixed water and wind turbine not using meta for localized name
This commit is contained in:
parent
e342cef7d6
commit
d9b98ef4ee
2 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue