mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix ConditionalCodec having an inverted test. Closes #9742
Remove clean project on CI. Bump FG version to fix transitive issue on module path.
This commit is contained in:
8 files changed
+215
-128
No files matched your search
@@ -62,8 +62,8 @@ public class ConditionCodec {
|
||||
return DataResult.error(() -> conditionDecoded.error().get().message());
|
||||
|
||||
var condition = conditionDecoded.result().get();
|
||||
if (condition.test(getContext(ops)))
|
||||
return DataResult.success(Pair.of(Optional.empty(), null));
|
||||
if (!condition.test(getContext(ops)))
|
||||
return DataResult.success(Pair.of(Optional.empty(), ops.empty()));
|
||||
|
||||
return normal.decode(ops, input).map(p -> p.mapFirst(Optional::of));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user