mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
pain²
This commit is contained in:
parent
ccd460fe9e
commit
ab0143347f
@ -72,11 +72,12 @@ public class TileEntityHeaterFirebox extends TileEntityFireboxBase implements IC
|
|||||||
return new ContainerFirebox(player.inventory, this);
|
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
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
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);
|
return new GUIFirebox(player.inventory, this, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -96,11 +96,12 @@ public class TileEntityHeaterOven extends TileEntityFireboxBase implements IConf
|
|||||||
return new ContainerFirebox(player.inventory, this);
|
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
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
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);
|
return new GUIFirebox(player.inventory, this, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -151,7 +151,7 @@ public class TileEntityMachineCentrifuge extends TileEntityMachineBase implement
|
|||||||
speed += Math.min(UpgradeManager.getLevel(UpgradeType.SPEED), 3);
|
speed += Math.min(UpgradeManager.getLevel(UpgradeType.SPEED), 3);
|
||||||
consumption += Math.min(UpgradeManager.getLevel(UpgradeType.SPEED), 3) * 200;
|
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 += Math.min(UpgradeManager.getLevel(UpgradeType.OVERDRIVE), 3) * 10000;
|
||||||
|
|
||||||
consumption /= (1 + Math.min(UpgradeManager.getLevel(UpgradeType.POWER), 3));
|
consumption /= (1 + Math.min(UpgradeManager.getLevel(UpgradeType.POWER), 3));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user