Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
fix safe problem in FastLMgr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbeanw44602 committed Jul 11, 2021
1 parent d3fac54 commit 9ddd5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ async/*
pl/*
lua/iland/lang/*
init.lua
sync.cmd
sync.cmd
givecookie.lua
4 changes: 2 additions & 2 deletions iland-core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- | || |__| (_| | | | | (_| | ~ License GPLv3 未经许可禁止商用 ~
-- |___|_____\__,_|_| |_|\__,_| ~ ------------------------------- ~
-- ——————————————————————————————————————————————————————————————————
local plugin_version = '2.0'
local plugin_version = '2.01'
local langVer = 200
local minLLVer = 210613
local minAirVer = 101
Expand Down Expand Up @@ -1092,7 +1092,7 @@ function IL_CmdFunc(player,cmd)
if opt[1] == MainCmd and opt[2]==nil then
local ppos = AIR.pos2vec({Actor:getPos(player)})
local lid = ILAPI.PosGetLand(ppos)
if lid~=-1 then
if lid~=-1 and (ILAPI.GetOwner(lid)==xuid) then
TRS_Form[player].landId=lid
IL_FastMgr_GUI(player)
else
Expand Down

0 comments on commit 9ddd5d6

Please sign in to comment.