angelo fabris
Member
- Joined
- Dec 15, 2021
- Messages
- 10
- Reaction score
- 7
I was facing a problem in my server (tfs 1.5). When I use some stair and the default sqm was not clear, it display the following error:
Argument -1 has out-of-range value for unsigned short: -1
I tried to find some solutions but I dont found anything in forums. So here is the solution.
You need to open /data/lib/core/position.lua
and change this line:
local position = self + Position.directionOffset[direction]
to:
local position = Position(self.x + Position.directionOffset[direction].x, self.y + Position.directionOffset[direction].y, self.z)
and restart your server.
Argument -1 has out-of-range value for unsigned short: -1
I tried to find some solutions but I dont found anything in forums. So here is the solution.
You need to open /data/lib/core/position.lua
and change this line:
local position = self + Position.directionOffset[direction]
to:
local position = Position(self.x + Position.directionOffset[direction].x, self.y + Position.directionOffset[direction].y, self.z)
and restart your server.