Skip to content

Commit

Permalink
Fix accidental CustomConditionEventJS breaking change (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Jan 3, 2025
1 parent 6cbbeb7 commit 3203c82
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
import net.minecraft.world.item.ItemStack;

public class CustomConditionEventJS implements KubeEvent {
public void register(String id, BiPredicate<MachineProcessCondition.Context, MachineRecipe> predicate, ItemStack icon, Component... description) {
public void registerWithIcon(String id, BiPredicate<MachineProcessCondition.Context, MachineRecipe> predicate, ItemStack icon,
Component... description) {
CustomProcessCondition.register(id, predicate, icon, description);
}

public void register(String id, BiPredicate<MachineProcessCondition.Context, MachineRecipe> predicate, Component... description) {
register(id, predicate, ItemStack.EMPTY, description);
registerWithIcon(id, predicate, ItemStack.EMPTY, description);
}
}

0 comments on commit 3203c82

Please sign in to comment.