-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config to remove gold coins from the oredict (#86)
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
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
26 changes: 26 additions & 0 deletions
26
...java/dev/rndmorris/salisarcana/mixins/late/config/MixinConfigItems_UnOredictGoldCoin.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,26 @@ | ||
package dev.rndmorris.salisarcana.mixins.late.config; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
import com.llamalad7.mixinextras.injector.wrapoperation.Operation; | ||
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; | ||
|
||
import thaumcraft.common.config.ConfigItems; | ||
|
||
@Mixin(value = ConfigItems.class, remap = false) | ||
public class MixinConfigItems_UnOredictGoldCoin { | ||
|
||
@WrapOperation( | ||
method = "init", | ||
at = @At( | ||
value = "INVOKE", | ||
ordinal = 24, | ||
target = "Lnet/minecraftforge/oredict/OreDictionary;registerOre(Ljava/lang/String;Lnet/minecraft/item/ItemStack;)V")) | ||
private static void onInit(String s, ItemStack itemStack, Operation<Void> original) { | ||
// intentionally do nothing | ||
} | ||
|
||
} |