This commit is contained in:
sainagh
2026-07-25 16:18:14 -05:00
parent 3533ad27ec
commit 5463fe8373
3932 changed files with 5500 additions and 211408 deletions
-28
View File
@@ -1,28 +0,0 @@
#loader mixin
import native.net.minecraft.item.Item;
import native.net.minecraft.item.ItemStack;
import native.org.zeith.thaumicadditions.events.LivingEventsTAR;
/*
Fix Mithminite Hood trying to mend unrepairable items.
Specifically fixes issue where it would downgrade CoFH Fluxbores.
Created by ChaosStrikez for Thaumic Additions 12.7.9.
*/
#mixin Mixin
#{targets: "org.zeith.thaumicadditions.events.LivingEventsTAR"}
zenClass MixinLivingEventsTAR {
#mixin Redirect
#{
# method: "pickupXP",
# at: {
# value: "INVOKE",
# target: "Lnet/minecraft/item/Item;isDamaged(Lnet/minecraft/item/ItemStack;)Z"
# }
#}
function mbc_checkRepairable(instance as Item, stack as ItemStack) as bool {
return instance.isRepairable() && !stack.getHasSubtypes() && stack.isItemDamaged();
}
}