Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix item transforms #281

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix item transforms #281

wants to merge 3 commits into from

Conversation

brachy84
Copy link
Member

@brachy84 brachy84 commented Dec 8, 2024

No description provided.

@brachy84 brachy84 added the bug Something isn't working label Dec 8, 2024
@@ -130,6 +129,10 @@ default ItemStack applyTransform(ItemStack matchedInput) {
if (grs$getTransformer() != null) {
ItemStack result = grs$getTransformer().transform(matchedInput);
if (result == null) return ItemStack.EMPTY;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be

Suggested change
if (result == null) return ItemStack.EMPTY;
if (result == null || result.isEmpty()) return ItemStack.EMPTY;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants