Fixed levitator not rotating

This commit is contained in:
Calclavia 2014-01-23 22:25:46 +08:00
parent 34018f215b
commit 0d15854a6f
2 changed files with 11 additions and 8 deletions

View file

@ -239,6 +239,8 @@ public class TileEngineeringTable extends TileAdvanced implements IPacketReceive
}
}
}
onInventoryChanged();
}
/**

View file

@ -8,11 +8,12 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import resonantinduction.core.Reference;
import resonantinduction.core.prefab.block.BlockRI;
import resonantinduction.core.prefab.block.BlockRIRotatable;
import resonantinduction.core.render.RIBlockRenderingHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockLevitator extends BlockRI
public class BlockLevitator extends BlockRIRotatable
{
public BlockLevitator()
{
@ -20,13 +21,6 @@ public class BlockLevitator extends BlockRI
this.setTextureName(Reference.PREFIX + "machine");
}
@SideOnly(Side.CLIENT)
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.INSTANCE.getRenderId();
}
@Override
public boolean onMachineActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9)
{
@ -86,6 +80,13 @@ public class BlockLevitator extends BlockRI
}
}
@SideOnly(Side.CLIENT)
@Override
public int getRenderType()
{
return RIBlockRenderingHandler.INSTANCE.getRenderId();
}
@Override
public TileEntity createNewTileEntity(World world)
{