From bb013d537cc6d7e2d7afaf17c5835254f656e6e0 Mon Sep 17 00:00:00 2001 From: Uraneptus Date: Thu, 26 Dec 2024 03:33:57 +0100 Subject: [PATCH] bump versions --- build.gradle | 2 ++ build.properties | 4 ++-- .../morphtool/data_components/ToolContentComponent.java | 8 ++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index ea510a8..4e9f22b 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,9 @@ repositories { dependencies { implementation "net.neoforged:neoforge:21.1.1" + //test mods implementation "curse.maven:applied-energistics-2-223794:5610903" + implementation "curse.maven:storage-drawers-223852:5840297" } spotless { diff --git a/build.properties b/build.properties index 03c4db8..67e7b69 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ #Wed Aug 07 18:14:56 UTC 2024 -neoforge_version=21.1.1 +neoforge_version=21.1.90 mod_id=morphtool dir_repo=./ build_number=39 @@ -8,4 +8,4 @@ version=1.8 mod_name=Morph-o-Tool mc_version=1.21.1 neogradle.subsystems.parchment.minecraftVersion=1.21 -neogradle.subsystems.parchment.mappingsVersion=2024.07.28 +neogradle.subsystems.parchment.mappingsVersion=2024.11.17 diff --git a/src/main/java/vazkii/morphtool/data_components/ToolContentComponent.java b/src/main/java/vazkii/morphtool/data_components/ToolContentComponent.java index 705650c..30f57cb 100644 --- a/src/main/java/vazkii/morphtool/data_components/ToolContentComponent.java +++ b/src/main/java/vazkii/morphtool/data_components/ToolContentComponent.java @@ -25,12 +25,8 @@ public ToolContentComponent(List contents) { this.items = contents; } - private static DataResult checkAndCreate(List p_381706_) { - try { - return DataResult.success(new ToolContentComponent(p_381706_)); - } catch (ArithmeticException arithmeticexception) { - return DataResult.error(() -> "Excessive total bundle weight"); - } + private static DataResult checkAndCreate(List stacks) { + return DataResult.success(new ToolContentComponent(stacks)); } public boolean isEmpty() {