-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable ender quarry RF storage (#446)
Co-authored-by: Wilhelm Schuster <ws@rot13.io> Co-authored-by: Martin Robertz <dream-master@gmx.net> (cherry picked from commit e12c6d8)
- Loading branch information
1 parent
131ac95
commit 50c90fd
Showing
3 changed files
with
26 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
17 changes: 17 additions & 0 deletions
17
...java/com/mitchej123/hodgepodge/mixins/late/extrautilities/MixinTileEntityEnderQuarry.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,17 @@ | ||
package com.mitchej123.hodgepodge.mixins.late.extrautilities; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.ModifyArg; | ||
|
||
import com.mitchej123.hodgepodge.config.TweaksConfig; | ||
import com.rwtema.extrautils.tileentity.enderquarry.TileEntityEnderQuarry; | ||
|
||
@Mixin(value = TileEntityEnderQuarry.class, remap = false) | ||
public class MixinTileEntityEnderQuarry { | ||
|
||
@ModifyArg(method = "<init>", at = @At(value = "INVOKE", target = "Lcofh/api/energy/EnergyStorage;<init>(I)V")) | ||
private int mixinInit(int energyStored) { | ||
return TweaksConfig.extraUtilitiesEnderQuarryOverride; | ||
} | ||
} |