From 22861176eda637a56715958f6e153953a085d59b Mon Sep 17 00:00:00 2001 From: Yjn024 Date: Fri, 2 Dec 2022 17:22:53 +0800 Subject: [PATCH] bug fixes and done port --- .../dragons/createdragonlib/fluid/FluidLavaReaction.java | 5 +++++ src/main/resources/create_dragon_lib.mixins.json | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/plus/dragons/createdragonlib/fluid/FluidLavaReaction.java b/src/main/java/plus/dragons/createdragonlib/fluid/FluidLavaReaction.java index 5635f30..a3e9ec4 100644 --- a/src/main/java/plus/dragons/createdragonlib/fluid/FluidLavaReaction.java +++ b/src/main/java/plus/dragons/createdragonlib/fluid/FluidLavaReaction.java @@ -23,4 +23,9 @@ public static FluidLavaReaction get(FlowingFluid fluid) { return REACTIONS.keySet().stream().anyMatch(variant -> variant.isOf(fluid.getSource())) ? REACTIONS.entrySet().stream().filter(p -> p.getKey().isOf(fluid.getSource())).findFirst().get().getValue() : null; } + @Nullable + public static FluidLavaReaction get(FluidVariant fluid) { + return fluid.getFluid() instanceof FlowingFluid flow ? get(flow) : null; + } + } diff --git a/src/main/resources/create_dragon_lib.mixins.json b/src/main/resources/create_dragon_lib.mixins.json index 8695455..e45680d 100644 --- a/src/main/resources/create_dragon_lib.mixins.json +++ b/src/main/resources/create_dragon_lib.mixins.json @@ -3,7 +3,6 @@ "priority": 1100, "package": "plus.dragons.createdragonlib.mixin", "compatibilityLevel": "JAVA_16", - "refmap": "create_dragon_lib.refmap.json", "mixins": [ "AdvancementBehaviourAccessor", "CreateAdvancementConstructor",