Skip to content

Commit

Permalink
bug fixes and done port
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Dec 2, 2022
1 parent 57e097a commit 2286117
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
1 change: 0 additions & 1 deletion src/main/resources/create_dragon_lib.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"priority": 1100,
"package": "plus.dragons.createdragonlib.mixin",
"compatibilityLevel": "JAVA_16",
"refmap": "create_dragon_lib.refmap.json",
"mixins": [
"AdvancementBehaviourAccessor",
"CreateAdvancementConstructor",
Expand Down

0 comments on commit 2286117

Please sign in to comment.