This commit is contained in:
Boblet 2022-11-07 08:18:21 +01:00
parent ccd460fe9e
commit ab0143347f
3 changed files with 5 additions and 3 deletions

View File

@ -72,11 +72,12 @@ public class TileEntityHeaterFirebox extends TileEntityFireboxBase implements IC
return new ContainerFirebox(player.inventory, this);
}
@SideOnly(Side.CLIENT) private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/machine/gui_firebox.png");
@SideOnly(Side.CLIENT) private ResourceLocation texture;
@Override
@SideOnly(Side.CLIENT)
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
if(texture == null) texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/machine/gui_firebox.png");
return new GUIFirebox(player.inventory, this, texture);
}

View File

@ -96,11 +96,12 @@ public class TileEntityHeaterOven extends TileEntityFireboxBase implements IConf
return new ContainerFirebox(player.inventory, this);
}
@SideOnly(Side.CLIENT) private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/machine/gui_heating_oven.png");
@SideOnly(Side.CLIENT) private ResourceLocation texture;
@Override
@SideOnly(Side.CLIENT)
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
if(texture == null) texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/machine/gui_heating_oven.png");
return new GUIFirebox(player.inventory, this, texture);
}

View File

@ -151,7 +151,7 @@ public class TileEntityMachineCentrifuge extends TileEntityMachineBase implement
speed += Math.min(UpgradeManager.getLevel(UpgradeType.SPEED), 3);
consumption += Math.min(UpgradeManager.getLevel(UpgradeType.SPEED), 3) * 200;
speed *= Math.min(UpgradeManager.getLevel(UpgradeType.OVERDRIVE), 3) * 5;
speed *= (1 + Math.min(UpgradeManager.getLevel(UpgradeType.OVERDRIVE), 3) * 5);
consumption += Math.min(UpgradeManager.getLevel(UpgradeType.OVERDRIVE), 3) * 10000;
consumption /= (1 + Math.min(UpgradeManager.getLevel(UpgradeType.POWER), 3));