Skip to content

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

Description

@jaredlll08

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingverifier

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions