File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ local function getOptionsForEntity(entity, globalType)
164164 local model , netId = cachedEntityInfo (entity )
165165
166166 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 ,
168168 model = (store .models [model ] ~= nil and # store .models [model ] > 0 and store .models [model ]) or nil ,
169169 entity = (netId and store .entities [netId ] ~= nil and # store .entities [netId ] > 0 and store .entities [netId ]) or nil ,
170170 localEntity = (store .localEntities [entity ] ~= nil and # store .localEntities [entity ] > 0 and store .localEntities [entity ]) or nil ,
@@ -484,7 +484,6 @@ local function drawLoop()
484484 dui .sendMessage (' setOptions' , { options = data .validOpts , resetIndex = resetIndex })
485485 end
486486 else
487- -- lib.print.info(item)
488487 local distance = # (playerCoords - coords )
489488 if distance < config .maxInteractDistance and item .currentScreenDistance < math.huge then
490489 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