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