-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EssentialCraft 4 compatibility #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the delay
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/DemonTradeManager.java
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/DemonTradeManager.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
Outdated
Show resolved
Hide resolved
all good! thank you for the review regardless pushed most fixes, although I don't understand the ALL_MOBS one |
ok this should be all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took a bit because i wanted to get the mixin fix for removing smeltery stuff done. which now it is.
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/DemonTradeManager.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java
Outdated
Show resolved
Hide resolved
all of these resolved, with an extra fix for a magmatic smeltery crash when an invalid ore is inserted |
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
Outdated
Show resolved
Hide resolved
...in/java/com/cleanroommc/groovyscript/core/mixin/essentialcraft/TileMagmaticSmelterMixin.java
Outdated
Show resolved
Hide resolved
done |
import essentialcraft.api.OreSmeltingRecipe; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
@RegistryDescription(reloadability = RegistryDescription.Reloadability.DISABLED, admonition={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since theres only one admonition, can remove the curly braces around it. should have your IDE highlighting it.
List of machines added:
DemonTrade
,MagicianTable
,MagmaticSmeltery
,MithrilineFurnace
,RadiatingChamber
,WindRune
. There are three notes I wanted to add:getSubItems
causing an NPE. Or I am getting trolled by a client-server desync (the most likely). Theoretically I could mixin into the clientside methods ofOreSmeltingRecipe
, but that seems a bit disruptive. I've currently added a check that makes sure to not reload Magmatic Smeltery recipes to avoid the NPE.