From 1f84bd0fa5e3b79681b276b17016feae5847dfac Mon Sep 17 00:00:00 2001 From: Xel'Bayria <12866666+Xelbayria@users.noreply.github.com> Date: Wed, 1 Jan 2025 12:17:11 -0700 Subject: [PATCH] AbstractSimpleEntrySet: Changed requiresFromMap() to fix the crash --- .../every_compat/api/AbstractSimpleEntrySet.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common/src/main/java/net/mehvahdjukaar/every_compat/api/AbstractSimpleEntrySet.java b/common/src/main/java/net/mehvahdjukaar/every_compat/api/AbstractSimpleEntrySet.java index 9bfdd155..eaeaad8f 100644 --- a/common/src/main/java/net/mehvahdjukaar/every_compat/api/AbstractSimpleEntrySet.java +++ b/common/src/main/java/net/mehvahdjukaar/every_compat/api/AbstractSimpleEntrySet.java @@ -496,13 +496,8 @@ public BL requiresChildren(String... childKeys) { } //exclusive with addCondition - public BL requiresFromMap(Map... entrySets) { - this.addCondition(blockType -> { - for (Map entrySet : entrySets) { - if (Objects.isNull(entrySet.get(blockType))) return false; - } - return true; - }); + public BL requiresFromMap(Map entrySet) { + this.addCondition(blockType -> !Objects.isNull(entrySet.get(blockType))); return (BL) this; }