Skip to content

API Place command can get stuck in a loop #148

@ThatCreeper

Description

@ThatCreeper

Describe the bug
When trying to place multiple templates, the client can sometimes get stuck in an infinite loop because the nearest place location isn't open.

To Reproduce
Steps to reproduce the behavior:

  1. Connect API and authorize
  2. Begin placing in swap mode, send templates, commit placing.
  3. Player is unable to move and templates do not finish placing.

Expected behavior
Templates all place and control is restored to the player.

Screenshots
(N/A)

Checks
Please check all these for more infomation with the bug.

  • I am using the latest version. (I tested with the latest Modrinth version, which I believe is the same, and with HEAD.)
  • I have tried disabling various options to see if they cause the issue, such as new ones or ones I have recently enabled. (Perhaps not well enough.)

I tried patching it at https://github.com/ThatCreeper/CodeClient/tree/placefix, but I'm not totally confident in this being the proper fix.

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