Centrifuge texture fix (Still needs side on)

This commit is contained in:
gigabit101 2016-03-06 15:15:53 +00:00
parent b6f29f8aee
commit e7b7e44a48

View file

@ -12,8 +12,6 @@ import techreborn.tiles.TileCentrifuge;
public class BlockCentrifuge extends BlockMachineBase implements IRotationTexture {
public BlockCentrifuge() {
super();
setUnlocalizedName("techreborn.centrifuge");
@ -26,11 +24,10 @@ public class BlockCentrifuge extends BlockMachineBase implements IRotationTextur
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z,
EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
if (!player.isSneaking())
player.openGui(Core.INSTANCE, GuiHandler.centrifugeID, world, x, y,
z);
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
if (!player.isSneaking()) {
player.openGui(Core.INSTANCE, GuiHandler.centrifugeID, world, x, y, z);
}
return true;
}
@ -48,7 +45,7 @@ public class BlockCentrifuge extends BlockMachineBase implements IRotationTextur
@Override
public String getSide() {
return prefix + "advanced_machine_side";
return getFrontOff();
}
@Override