Skip to content

[BUG] Default item spawn bug #292

@hallowatcher

Description

@hallowatcher

Describe the bug
If you move far enough away from a default item spawn, it will throw the following out of range exception:
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to the wilderness
  2. Log out
  3. Log back in
  4. See error

Expected behavior
No error should be thrown

Desktop (please complete the following information):

  • OS: Windows 10

Here's a video of it happening, right on the chunk where it breaks:
Video

From what I dug up, it seems to be this calculation that is generating an out of range X and Y (outbound-packets.ts)
image

Maybe such items shouldn't spawn for the player instance when they are so far away?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions