diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-06-05 00:13:59 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-06-05 00:14:22 +0300 |
commit | a1bb6316f2d6ecc0019e00438b4cf724dde68f73 (patch) | |
tree | 05edeedca30fa5a5a50085b594244aa66ef569cc /src/main/resources | |
parent | 1aba27451ce4b95dc7a832938998c9d1581eee97 (diff) | |
download | LibGui-a1bb6316f2d6ecc0019e00438b4cf724dde68f73.tar.gz LibGui-a1bb6316f2d6ecc0019e00438b4cf724dde68f73.tar.bz2 LibGui-a1bb6316f2d6ecc0019e00438b4cf724dde68f73.zip |
Switch from accessor to AW, fixes #113
Accessors would be preferred but there is a mixin bug/regression
that prevents me from modifying final fields with accessors unless I do
some concerning hacky code.
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/fabric.mod.json | 4 | ||||
-rw-r--r-- | src/main/resources/libgui.accesswidener | 6 | ||||
-rw-r--r-- | src/main/resources/mixins.libgui.accessors.json | 14 |
3 files changed, 7 insertions, 17 deletions
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index c6e1b4d..9431237 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -22,9 +22,7 @@ "client": ["io.github.cottonmc.cotton.gui.impl.client.LibGuiClient"], "modmenu": ["io.github.cottonmc.cotton.gui.impl.modmenu.ModMenuSupport"] }, - "mixins": [ - "mixins.libgui.accessors.json" - ], + "accessWidener": "libgui.accesswidener", "depends": { "fabricloader": ">=0.11.0", "fabric": "*", diff --git a/src/main/resources/libgui.accesswidener b/src/main/resources/libgui.accesswidener new file mode 100644 index 0000000..c290bc6 --- /dev/null +++ b/src/main/resources/libgui.accesswidener @@ -0,0 +1,6 @@ +accessWidener v1 named + +accessible field net/minecraft/screen/slot/Slot x I +accessible field net/minecraft/screen/slot/Slot y I +mutable field net/minecraft/screen/slot/Slot x I +mutable field net/minecraft/screen/slot/Slot y I diff --git a/src/main/resources/mixins.libgui.accessors.json b/src/main/resources/mixins.libgui.accessors.json deleted file mode 100644 index 9ec55f2..0000000 --- a/src/main/resources/mixins.libgui.accessors.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compatibilityLevel": "JAVA_8", - "minVersion": "0.7.11", - "package": "io.github.cottonmc.cotton.gui.impl.access", - "required": true, - - "mixins": [ - "SlotAccessor" - ], - - "injectors": { - "defaultRequire": 1 - } -} |