Commit Graph
962 Commits
Author SHA1 Message Date
modmuss 2cd49e6314 Enable checkstyle (#149) 2024-07-01 09:09:16 +01:00
LlamaLad7 2edfbc448e Fix: Do not re-parent calls to interface super methods. (#150)
The existing logic is wrong, and they will always be valid as-is because any superinterfaces will be merged onto the target class.
2024-07-01 08:58:23 +01:00
modmuss d0a6ebdf9e Update Gradle (#148) 2024-06-19 23:18:56 +01:00
LlamaLad7 a8254c7483 Fix: Properly extend the stack in ModifyArgInjector. (#144)
The old logic doesn't really make any sense and the calculated extension usually ended up being negative.
Instead, we just make room for our possible receiver and all of our args.
2024-06-08 15:17:38 +01:00
LlamaLad7 c093311184 Fix: Overhaul MixinVerifier supertype logic.
It previously didn't handle array types correctly among some other issues.
2024-06-02 19:43:20 +01:00
LlamaLad7 35c079a988 Fix: Resolve occasional NPE in Locals calculations. 2024-06-02 19:43:20 +01:00
modmuss 02f8479411 Merge pull request #141 from LlamaLad7/merge/0.8.6
Merge/0.8.6
2024-06-02 19:38:09 +01:00
LlamaLad7 8d413b8e43 Compat: Gate NEW descriptor filtering. 2024-06-01 18:44:47 +01:00
LlamaLad7 18f632ca35 Build: Bump version. 2024-06-01 18:41:38 +01:00
LlamaLad7 ea733f9603 Change: Add stack checking to old Target#findInitNodeFor overload and un-deprecate it.
The only reason MixinExtras uses this method is to match Redirect's behaviour, so I would like it to be kept in line with that.
Additionally, there is nothing wrong with not checking the desc as long as you've definitely found the right `NEW` insn, which the injection point handles itself.
2024-06-01 18:23:58 +01:00
LlamaLad7 afb9f13921 Fix: Restore removed methods relating to configs. 2024-05-20 01:14:32 +01:00
LlamaLad7 ab4dab0d22 buildscript: Relevant changes from 0.8.6
Accidentally kept these locally.
2024-05-19 23:07:01 +01:00
Mumfrey 0165cf9fcd Restore old findInitNodeFor used by MixinExtras, mark as deprecated
(cherry picked from commit 902c3439e8)
2024-05-19 22:46:47 +01:00
LlamaLad7 92a64e3634 Fabric: Default At#unsafe to true. 2024-05-19 22:45:33 +01:00
LlamaLad7 fda52dce6b Fix: Resolve inappropriate null default in Mixins#addConfiguration. 2024-05-19 22:39:38 +01:00
LlamaLad7 8fda508119 Fabric: Re-allow jumps and array accesses inside initialisers. 2024-05-19 22:19:31 +01:00
LlamaLad7 a1d5becea7 Fabric: Fall back to modid in MethodMapper#getMixinSourceId. 2024-05-19 22:12:41 +01:00
LlamaLad7 998f057459 Initial merge for 0.8.6 2024-05-19 22:05:31 +01:00
LlamaLad7 9cf325d31c Revert "Allowing injecting in constructor's (#30 #40)"
This reverts commit 536170a946.
2024-05-19 19:10:19 +01:00
LlamaLad7 3a090bd0ca Revert "New: Allow injection point specifiers anywhere. (#129)"
This reverts commit e70693a79a.
2024-05-19 19:04:03 +01:00
Mumfrey 2c9a96700c Mixin 0.8.6 RELEASE 2024-05-13 00:14:35 +01:00
Mumfrey 53aa500f8d Update build.gradle for hardware signing token 2024-05-12 23:39:45 +01:00
Mumfrey d2d1fbc6f4 Move staticness check for mixin field after unique check, closes #576 2024-05-12 23:39:40 +01:00
Mumfrey 480bd3d9e5 Add missing toString override, closes #562 2024-05-12 23:39:34 +01:00
Mumfrey 1accf3fd6b Check for null when inspecting Mixin superclass, closes #546 2024-05-12 23:39:28 +01:00
Mumfrey 2e5a4b0512 Fix descriptor filtering for NEW injection point, closes #515 2024-05-12 23:39:21 +01:00
Mumfrey f0d2cd21df Add constructor invokers to refmap when type is implied, closes #454 2024-05-12 21:31:13 +01:00
Mumfrey 5f57d5006b Add fallback shim for synthetic package for older ModLauncher versions 2024-05-12 21:31:13 +01:00
Mumfrey c970d84ec3 Wrap logger abstraction in agent classes to prevent crash at startup 2024-05-12 21:31:13 +01:00
Mumfrey a87babe37c Fix missing field assignment for source in MixinConfig 2024-05-12 21:31:13 +01:00
Mumfrey 9c1abe34e5 Fix broken invokers when target is an interface 2024-05-12 21:31:13 +01:00
Mumfrey 73def3578b Restore ctor init merging to previous logic, introduce PRE_BODY enforcer
Closes #658
2024-05-12 21:31:13 +01:00
modmuss 2f35debf10 Bump version 2024-04-16 21:39:27 +01:00
Su5eD e779303628 Use 0 as class reader flags in Modlauncher bytecode provider (#137)
Relates to neoforged/NeoForge#768
2024-04-16 21:38:47 +01:00
modmuss ba8066133e Bump version 2024-04-12 09:21:26 +01:00
LlamaLad7 320b74c2d4 Fix: Reset Unique field counters on Mixin application. (#136)
They previously caused hotswaps to fail due to the number increasing on each application.
2024-04-11 13:52:14 +01:00
modmuss50 a2091792e8 Fix indent 2024-04-03 16:36:02 +01:00
modmuss50 989efeb1a4 Bump version 2024-04-03 16:26:05 +01:00
modmuss50 eb44a33881 Set maven pom name 2024-04-03 16:25:51 +01:00
LlamaLad7 738638f092 Fix: Strip synthetic LVT entries after exporting. (#135)
They are useful for the dumped classes, but they have incorrect labels and as such they confuse IDEA's debugger.
2024-04-03 16:18:33 +01:00
modmuss b07a8b2b15 Bump version 2024-03-08 09:27:52 +00:00
modmuss 49042ea4ca Add maven metadata (#130)
* Add maven metadata

* Typo
2024-03-08 09:27:11 +00:00
LlamaLad7 dadc14717c Fix: Properly extend the stack in CallbackInjector. (#131)
The old logic misses the receiver and does not correctly handle double-size types.
2024-03-08 09:26:04 +00:00
LlamaLad7 8c8ece2737 Fix: Check the staticness of the original call not the current one. (#132) 2024-03-08 09:25:55 +00:00
modmuss50 d7eda8d709 Bump version 2024-03-03 16:34:52 +00:00
LlamaLad7 e70693a79a New: Allow injection point specifiers anywhere. (#129)
Takes the relevant changes from https://github.com/SpongePowered/Mixin/commit/e02f4cae3fe51d6bd83de5e020956587ead8087c.
2024-03-03 16:34:02 +00:00
LlamaLad7 3eb5281d66 Fix/modifyarg(s) after redirect (#128)
* Fix: Resolve `@Redirect`s breaking `@ModifyArg`.

* Fix: Resolve `@Redirect`s breaking `@ModifyArgs`.
2024-03-03 16:33:50 +00:00
modmuss a57c4fbb43 Publish to maven central (#127) 2024-03-03 16:33:34 +00:00
Matyrobbrt 8caaaaa62d Include the Gson module deps in the module-info (#126)
* Include the Gson module deps in the module-info

* Fully fix modularity

* Update PatternCompiler.java
2024-03-03 16:33:19 +00:00
modmuss 8bb4cfe1a4 Define newer Java versions (#124) 2024-03-03 16:33:04 +00:00