-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mixin error with the holder and apply env annotations that were b…
…reaking servers while missing
- Loading branch information
1 parent
56bd0ca
commit d963403
Showing
8 changed files
with
39 additions
and
17 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
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
11 changes: 0 additions & 11 deletions
11
fabric/src/main/java/com/copycatsplus/copycats/fabric/mixin/HolderReferenceInvoker.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
fabric/src/main/java/com/copycatsplus/copycats/fabric/mixin/HolderReferenceMixin.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.copycatsplus.copycats.fabric.mixin; | ||
|
||
import com.copycatsplus.copycats.fabric.mixin_interfaces.HolderReferenceAccessor; | ||
import net.minecraft.core.Holder; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
@Mixin(Holder.Reference.class) | ||
public abstract class HolderReferenceMixin implements HolderReferenceAccessor { | ||
|
||
@Shadow abstract <T> void bindValue(T value); | ||
|
||
@Override | ||
public <T> void copycats$bindValue(T value) { | ||
this.bindValue(value); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
.../main/java/com/copycatsplus/copycats/fabric/mixin_interfaces/HolderReferenceAccessor.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,6 @@ | ||
package com.copycatsplus.copycats.fabric.mixin_interfaces; | ||
|
||
public interface HolderReferenceAccessor { | ||
|
||
<T> void copycats$bindValue(T value); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"homepage": "https://github.com/copycats-plus/copycats/", | ||
"promos": { | ||
"1.20.1-recommended": "1.20.1-1.3.6", | ||
"1.19.2-recommended": "1.19.2-1.3.6", | ||
"1.18.2-recommended": "1.18.2-1.3.6" | ||
"1.20.1-recommended": "1.20.1-1.3.7", | ||
"1.19.2-recommended": "1.19.2-1.3.7", | ||
"1.18.2-recommended": "1.18.2-1.3.7" | ||
} | ||
} |