Skip to content

[Bug]: player.direction.toFacing() 的返回值错乱,时而是0时而是-1 #271

Closed
@zmsgsb

Description

@zmsgsb

Describe the bug

player.direction.toFacing() 的返回值错乱,时而是0时而是-1,正常情况下是应该返回0~3之间的任意一个数字,但是实际中只返回要么是0要么是-1(四个方向都试过)返回值是错乱的并且只有0和-1

Image

Image

To Reproduce

打印任意玩家的 player.direction.toFacing() 的返回值

Expected behavior

player.direction.toFacing() 的返回值正常返回

Screenshots

No response

Platform

Win10

BDS Version

1.21.60

LeviLamina Version

1.1.1

LegacyScriptEngine Version

0.10.6

Additional context

No response

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