Skip to content

Commit

Permalink
Update Tooltips for Large Boilers
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Nov 14, 2024
1 parent 3509e88 commit c24afc3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.nomiceu.nomilabs.mixin.gregtech;

import gregtech.common.metatileentities.multi.BoilerType;
import gregtech.common.metatileentities.multi.MetaTileEntityLargeBoiler;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

/**
* Updates Tooltips for the 10x Fuel Efficiency Increase in {@link BoilerRecipeLogicMixin}.
*/
@Mixin(value = MetaTileEntityLargeBoiler.class, remap = false)
public class MetaTileEntityLargeBoilerMixin {
@Redirect(method = "addInformation", at = @At(value = "INVOKE", target = "Lgregtech/common/metatileentities/multi/BoilerType;runtimeBoost(I)I", remap = false), remap = true)
private int getNewRuntimeBoost(BoilerType instance, int ticks) {
return instance.runtimeBoost(ticks * 10);
}
}
1 change: 1 addition & 0 deletions src/main/resources/mixins.nomilabs.gregtech.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"MaterialRecipeHandlerMixin",
"MaterialStackMixin",
"MetaItemsMixin",
"MetaTileEntityLargeBoilerMixin",
"MetaTileEntityMEStockingBusMixin",
"MetaTileEntityMEStockingHatchMixin",
"MetaTileEntityProcessingArrayMixin",
Expand Down

0 comments on commit c24afc3

Please sign in to comment.