From e155536573d44393ab2618f9f8a494e3c4868c77 Mon Sep 17 00:00:00 2001 From: jojo Date: Mon, 4 Jan 2021 22:04:31 +0100 Subject: [PATCH] Refactor version dependant calls to new System --- .../src/de/steamwar/schematicsystem/CheckSchemType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/CheckSchemType.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/CheckSchemType.java index 7503a70..4e3f284 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/CheckSchemType.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/CheckSchemType.java @@ -68,7 +68,7 @@ public class CheckSchemType implements ICheckSchemType { } public AutoCheckResult autoCheck(Schematic schematic) { - return VersionedCallable.call(new VersionedCallable<>(() -> new AutoCheckResult(), 8), + return VersionedCallable.call(new VersionedCallable<>(AutoCheckResult::new, 8), new VersionedCallable<>(() -> CheckSchemType_12.autoCheck(schematic, null), 12), new VersionedCallable<>(() -> CheckSchemType_15.autoCheck(schematic, null), 15)); }