1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-20 00:34:52 +00:00
CC-Tweaked/projects/forge/src
Jonathan Coates 57c72711bb
Use a platform method to register item properties
The two mod loaders expose different methods for this (Forge's method
takes a ItemPropertyFunction, Fabric's a ClampedItemPropertyFunction).
This is fine in a Gradle build, as the methods are compatible. However,
when running from IntelliJ, we get crashes as the common code tries to
reference the wrong method.

We now pass in the method reference instead, ensuring we use the right
method on each loader.
2024-03-22 20:19:32 +00:00
..
client/java/dan200/computercraft/client Use a platform method to register item properties 2024-03-22 20:19:32 +00:00
generated/resources Rewrite computer selectors 2024-03-12 20:12:13 +00:00
main STOP DOING MIXINS (on Forge) 2024-03-21 21:45:17 +00:00
test License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
testMod License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00