You've already forked ComfyFactorio
							
							
				mirror of
				https://github.com/ComfyFactory/ComfyFactorio.git
				synced 2025-10-30 23:47:41 +02:00 
			
		
		
		
	active_mods
This commit is contained in:
		| @@ -901,11 +901,11 @@ local function on_init() | ||||
|     end | ||||
|     local branch_version = '0.18.35' | ||||
|     local is_branch_18 = sub(branch_version, 3, 4) | ||||
|     local get_active_version = sub(game.active_mods.base, 3, 4) | ||||
|     local get_active_version = sub(script.active_mods.base, 3, 4) | ||||
|     local default = game.permissions.get_group('Default') | ||||
|  | ||||
|     is_branch_18 = is_branch_18 .. sub(branch_version, 6, 7) | ||||
|     get_active_version = get_active_version .. sub(game.active_mods.base, 6, 7) | ||||
|     get_active_version = get_active_version .. sub(script.active_mods.base, 6, 7) | ||||
|     if get_active_version >= is_branch_18 then | ||||
|         default.set_allows_action(defines.input_action.flush_opened_entity_fluid, false) | ||||
|         default.set_allows_action(defines.input_action.flush_opened_entity_specific_fluid, false) | ||||
|   | ||||
| @@ -16,7 +16,7 @@ local function get_instance() | ||||
|     if server_instances and server_instances[id] then | ||||
|         return server_instances[id] | ||||
|     else | ||||
|         return { name = 'Offline', id = id, status = 'offline', version = game.active_mods.base } | ||||
|         return { name = 'Offline', id = id, status = 'offline', version = script.active_mods.base } | ||||
|     end | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -61,7 +61,7 @@ function is_loaded_bool(module) | ||||
| end | ||||
|  | ||||
| function is_game_modded() | ||||
|     local active_mods = game.active_mods | ||||
|     local active_mods = script.active_mods | ||||
|     local i = 0 | ||||
|     for _, _ in pairs(active_mods) do | ||||
|         i = i + 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user