File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ local function getOptionsForEntity(entity, globalType)
164
164
local model , netId = cachedEntityInfo (entity )
165
165
166
166
local options = {
167
- global = # store [globalType ] > 0 and store [globalType ] or nil ,
167
+ global = ( store [ globalType ] ~= nil and # store [globalType ] > 0 and store [globalType ]) or nil ,
168
168
model = (store .models [model ] ~= nil and # store .models [model ] > 0 and store .models [model ]) or nil ,
169
169
entity = (netId and store .entities [netId ] ~= nil and # store .entities [netId ] > 0 and store .entities [netId ]) or nil ,
170
170
localEntity = (store .localEntities [entity ] ~= nil and # store .localEntities [entity ] > 0 and store .localEntities [entity ]) or nil ,
@@ -484,7 +484,6 @@ local function drawLoop()
484
484
dui .sendMessage (' setOptions' , { options = data .validOpts , resetIndex = resetIndex })
485
485
end
486
486
else
487
- -- lib.print.info(item)
488
487
local distance = # (playerCoords - coords )
489
488
if distance < config .maxInteractDistance and item .currentScreenDistance < math.huge then
490
489
local distanceRatio = math.min (0.5 + (0.25 * (distance / 10.0 )), 1.0 )
You can’t perform that action at this time.
0 commit comments