From 21e0b381728f7d1cfa739716ac3047f504d1bfd0 Mon Sep 17 00:00:00 2001 From: Daniel Mendes Date: Wed, 15 May 2024 01:11:04 +0100 Subject: [PATCH] Shorten description lines and add structure info - Shortened the longest description lines since they were too long; - Added a note about needing to force structure check by powering on the multi; - Spotless. --- .../UniversalChemicalFuelEngine.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/goodgenerator/blocks/tileEntity/UniversalChemicalFuelEngine.java b/src/main/java/goodgenerator/blocks/tileEntity/UniversalChemicalFuelEngine.java index 41cc8d7f..335320ba 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/UniversalChemicalFuelEngine.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/UniversalChemicalFuelEngine.java @@ -186,12 +186,13 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() { tt.addMachineType("Chemical Engine").addInfo("Controller block for the Chemical Engine") .addInfo("BURNING BURNING BURNING").addInfo("Use combustible liquid to generate power.") .addInfo("You need to supply Combustion Promoter to keep it running.") - .addInfo("This engine will consume all the fuel and combustion promoter in the hatch every second.") - .addInfo("If the energy hatch's buffer fills up, the machine will explode due to accumulated energy!") - .addInfo("When turned on, the engine goes through a 10-second starting period which prevents explosions.") - .addInfo("Even if an explosion is prevented due to excess fuel, all the fuel in the hatch will be voided.") + .addInfo("It will consume all the fuel and promoter in the hatch every second.") + .addInfo("If the energy hatch's buffer fills up, the machine will explode!") + .addInfo("When turned on, there's 10-second starting period which prevents explosions.") + .addInfo("Even if an explosion is prevented, all the fuel in the hatch will be voided.") .addInfo("The efficiency is determined by the proportion of Combustion Promoter to fuel.") .addInfo("The proportion is bigger, and the efficiency will be higher.") + .addInfo("Start machine with power button to force structure check.") .addInfo("It creates sqrt(Current Output Power) pollution every second") .addInfo( "If you forget to supply Combustion Promoter, this engine will swallow all the fuel " @@ -201,9 +202,10 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() { + ".") .addInfo("The efficiency is up to 150%.").addInfo("The structure is too complex!") .addInfo(BLUE_PRINT_INFO).addSeparator().beginStructureBlock(5, 4, 9, false) - .addMaintenanceHatch("Hint block with dot 1").addMufflerHatch("Hint block with dot 2 (fill all slots with mufflers)") - .addInputHatch("Hint block with dot 3 (fill all slots with input hatches)").addDynamoHatch("Hint block with dot 4") - .toolTipFinisher("Good Generator"); + .addMaintenanceHatch("Hint block with dot 1") + .addMufflerHatch("Hint block with dot 2 (fill all slots with mufflers)") + .addInputHatch("Hint block with dot 3 (fill all slots with input hatches)") + .addDynamoHatch("Hint block with dot 4").toolTipFinisher("Good Generator"); return tt; } @@ -254,6 +256,7 @@ public void stopMachine() { explosionSafetyTicks = 0; super.stopMachine(); } + @Override public boolean onRunningTick(ItemStack stack) { super.onRunningTick(stack); @@ -262,8 +265,7 @@ public boolean onRunningTick(ItemStack stack) { if (explosionSafetyTicks < EXPLOSION_SAFETY_TIMER) { explosionSafetyTicks++; isExplosionSafe = true; - } - else if (isExplosionSafe) isExplosionSafe = false; + } else if (isExplosionSafe) isExplosionSafe = false; if (this.getBaseMetaTileEntity().isServerSide()) { addAutoEnergy();