Skip to content

Trap assertion error #44

Closed Answered by NichtStudioCode
DevLeven asked this question in Q&A
Discussion options

You must be logged in to vote

It's this method:

// net.minecraft.world.item.ItemStack
private void updateEmptyCacheFlag() {
    if (this.emptyCacheFlag && this == EMPTY) {
        throw new AssertionError("TRAP");
    } else {
        this.emptyCacheFlag = false;
        this.emptyCacheFlag = this.isEmpty();
    }
}

Seems like you're trying to change the amount of an empty stack (air)?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DevLeven
Comment options

Answer selected by NichtStudioCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants