Skip to content

no Invalid ProcduralItemIndex please#3185

Open
Wunka wants to merge 1 commit into
PixelGuys:masterfrom
Wunka:noInvalidIndex
Open

no Invalid ProcduralItemIndex please#3185
Wunka wants to merge 1 commit into
PixelGuys:masterfrom
Wunka:noInvalidIndex

Conversation

@Wunka

@Wunka Wunka commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Fixes: #3178

@Wunka Wunka moved this to Easy to Review in PRs to review Jun 7, 2026

@IntegratedQuantum IntegratedQuantum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is fixing one location, but e.g. a corrupt world file could trigger the same error.
Also I wonder if maybe we should implement a more generic solution to the BinaryReader that avoids having to remember to manually check this every time.

@IntegratedQuantum IntegratedQuantum moved this from Easy to Review to In review in PRs to review Jun 7, 2026
@Wunka

Wunka commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

This is fixing one location, but e.g. a corrupt world file could trigger the same error. Also I wonder if maybe we should implement a more generic solution to the BinaryReader that avoids having to remember to manually check this every time.

I thought about maybe just adding a read / write method to ProcduralItemIndex which can then check this.

@IntegratedQuantum

Copy link
Copy Markdown
Member

Yeah, that would be an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

The server crashes when the client sends an unknown tool type index

2 participants