Skip to content

Commit

Permalink
make focus and thought knot re-use some writeable checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamsTheNerd committed Aug 2, 2024
1 parent 640697b commit f670ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f670ad5

Please sign in to comment.