• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Tile not Found - Error

Arn

Member
Joined
Mar 8, 2010
Messages
282
Reaction score
18
Hi, I'm doing a spell where I sometimes call getThingFromPos(pos). The problem is that if a tile is above ground and with nothing there, then the spell loops, generates errors, and crashes the server.

Is there any way I can check a position to see if its been set?

-TFS 0.2.12

-Arn

- - - Updated - - -

As usual, I find the solution on my own.

if positionExists(pos) then
 
Back
Top