-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...n/java/mod/acgaming/universaltweaks/tweaks/blocks/anvil/mixin/UTContainerRepairMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mod.acgaming.universaltweaks.tweaks.blocks.anvil.mixin; | ||
|
||
import net.minecraft.inventory.ContainerRepair; | ||
|
||
import mod.acgaming.universaltweaks.config.UTConfigTweaks; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(ContainerRepair.class) | ||
public abstract class UTContainerRepairMixin | ||
{ | ||
@ModifyConstant(method = "updateRepairOutput", constant = @Constant(intValue = 40)) | ||
private int utContainerRepair(int constant) | ||
{ | ||
return UTConfigTweaks.BLOCKS.ANVIL.utAnvilXPLevelCap; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/mod/acgaming/universaltweaks/tweaks/blocks/anvil/mixin/UTGuiRepairMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mod.acgaming.universaltweaks.tweaks.blocks.anvil.mixin; | ||
|
||
import net.minecraft.client.gui.GuiRepair; | ||
|
||
import mod.acgaming.universaltweaks.config.UTConfigTweaks; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(GuiRepair.class) | ||
public abstract class UTGuiRepairMixin | ||
{ | ||
@ModifyConstant(method = "drawGuiContainerForegroundLayer", constant = @Constant(intValue = 40)) | ||
private int utGuiRepair(int constant) | ||
{ | ||
return UTConfigTweaks.BLOCKS.ANVIL.utAnvilXPLevelCap; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters