Skip to content

Commit

Permalink
Additional error prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Nov 28, 2024
1 parent b68c9db commit e15b27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magic/arcane/spatial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ local function teleport(user, actionState, portal, destination)
user:learn(Character.spatialMagic, castDuration, 100)

if portal then
if world:isItemOnField(thePos) and world:getItemOnField(thePos).wear == 255 then
if not world:getField(thePos) or (world:isItemOnField(thePos) and world:getItemOnField(thePos).wear == 255) then
--[[
Only checks for static items here.
This way if the player turned around to try and cheat the portal placement,
Expand Down

0 comments on commit e15b27a

Please sign in to comment.