Closed Daomephsta closed 1 year ago
Will change that to an override once I find time
Also gonna try to remove the aw`s
Will change that to an override once I find time
Assuming this is a typo, but just in case, @Overwrite
is different from overriding a method.
Overriding a method in a mixin has a similar effect to overwriting, but reobfuscation will often fail, and you lose Mixin's overwrite conflict detection.
'Twas a typo
he just does that sometimes
Will change that to an override once I find time
Assuming this is a typo, but just in case,
@Overwrite
is different from overriding a method. Overriding a method in a mixin has a similar effect to overwriting, but reobfuscation will often fail, and you lose Mixin's overwrite conflict detection.
Yea did a big fat typo. But fixed in the new branch
Along with a bunch of other stuff
Fixed in new branch
ItemMixin.getUseDuration()
replicatesItem.getUseDuration()
with a cancellable@Inject
to insert a small section of mod code. This is a very problematic way to implement functionality because:@Inject
3, It's legally dubious at best. Minecraft's code is proprietary, so avoid copying it if at all possible.@Overwrite
would be a better solution here. It is in fact more compatible than the current approach, because it will not cause other injectors to silently fail. There's probably a way to do without it, but it would be an improvement.Also should be following Mixin best practices: