Skip to content

Commit f1c5e37

Browse files
Added is_mount_available
1 parent a94d32f commit f1c5e37

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

atlas_loader/atlas_loader.lua

+9
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,15 @@ function M.is_proxy_on_waiting_list(name)
166166
return proxy_wait_list[name] ~= nil
167167
end
168168

169+
---Check if the mount is available for proxy
170+
---@param name hash
171+
---@return boolean
172+
function M.is_mount_available(name)
173+
local proxy = proxies[name]
174+
return proxy and proxy.enough_resources and
175+
(mount_loader.is_mount_loaded(proxy.mount_key) or proxy.mount_key == NOT_EXCLUDED or mount_loader.is_old_mount_available(proxy.mount_key))
176+
end
177+
169178
---Return proxy info
170179
---@param name hash
171180
---@return atlas_proxy_data

game.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ input_method = HiddenInputField
1313

1414
[project]
1515
title = AtlasLoader
16-
version = 1.1.3
16+
version = 1.1.4
1717
dependencies#0 = https://github.com/andsve/dirtylarry/archive/refs/heads/master.zip
1818

1919
[library]

0 commit comments

Comments
 (0)