From 3203c8269a057e6f9b6287b225aa596e216f7823 Mon Sep 17 00:00:00 2001 From: Bruno Ploumhans <13494793+Technici4n@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:41:38 +0100 Subject: [PATCH] Fix accidental CustomConditionEventJS breaking change (#1001) --- .../compat/kubejs/recipe/CustomConditionEventJS.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/aztech/modern_industrialization/compat/kubejs/recipe/CustomConditionEventJS.java b/src/main/java/aztech/modern_industrialization/compat/kubejs/recipe/CustomConditionEventJS.java index 9cad1acb7..0dd340805 100644 --- a/src/main/java/aztech/modern_industrialization/compat/kubejs/recipe/CustomConditionEventJS.java +++ b/src/main/java/aztech/modern_industrialization/compat/kubejs/recipe/CustomConditionEventJS.java @@ -32,11 +32,12 @@ import net.minecraft.world.item.ItemStack; public class CustomConditionEventJS implements KubeEvent { - public void register(String id, BiPredicate predicate, ItemStack icon, Component... description) { + public void registerWithIcon(String id, BiPredicate predicate, ItemStack icon, + Component... description) { CustomProcessCondition.register(id, predicate, icon, description); } public void register(String id, BiPredicate predicate, Component... description) { - register(id, predicate, ItemStack.EMPTY, description); + registerWithIcon(id, predicate, ItemStack.EMPTY, description); } }