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

optional types do not get the operators of their non optional counterpart #100

Open
jaredlll08 opened this issue Jul 27, 2022 · 0 comments
Labels
bug Something isn't working verifier
Milestone

Comments

@jaredlll08
Copy link
Member

This script does not work:

        if itemHandler != null {
            println(itemHandler[2].commandString);
            itemHandler.insertItem(1, <item:minecraft:dirt>, false);
            println(itemHandler[1].commandString);
        }

but this one does:

        if itemHandler != null {
            println(itemHandler.getStackInSlot(2).commandString);
            itemHandler.insertItem(1, <item:minecraft:dirt>, false);
            println(itemHandler.getStackInSlot(1).commandString);
        }
@kindlich kindlich added this to the v1.0.0 milestone Jun 8, 2024
@kindlich kindlich added bug Something isn't working verifier labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verifier
Projects
None yet
Development

No branches or pull requests

2 participants