From f670ad566fbc1ae80d6606ce68678addefb6d3ce Mon Sep 17 00:00:00 2001 From: SamsTheNerd Date: Fri, 2 Aug 2024 12:24:07 -0400 Subject: [PATCH] make focus and thought knot re-use some writeable checks --- .../at/petrak/hexcasting/common/items/storage/ItemFocus.java | 2 +- .../petrak/hexcasting/common/items/storage/ItemThoughtKnot.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemFocus.java b/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemFocus.java index bc3af022b1..424eccadc3 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemFocus.java +++ b/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemFocus.java @@ -50,7 +50,7 @@ public boolean writeable(ItemStack stack) { @Override public boolean canWrite(ItemStack stack, Iota datum) { - return datum == null || !NBTHelper.getBoolean(stack, TAG_SEALED); + return datum == null || !isSealed(stack); } @Override diff --git a/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemThoughtKnot.java b/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemThoughtKnot.java index da1a2631fc..9e867cc250 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemThoughtKnot.java +++ b/Common/src/main/java/at/petrak/hexcasting/common/items/storage/ItemThoughtKnot.java @@ -39,7 +39,7 @@ public boolean writeable(ItemStack stack) { @Override public boolean canWrite(ItemStack stack, @Nullable Iota iota) { - return iota != null && !NBTHelper.contains(stack, TAG_DATA); + return iota != null && writeable(stack); } @Override