1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-23 22:35:38 +02:00

Improve mod compatibility (#1504)

* Improve mod compatibility

* Revert SE icon path

* Revert "Revert SE icon path"

This reverts commit 8a81a3e0a7.
This commit is contained in:
RedRafe
2025-10-04 22:11:33 +02:00
committed by GitHub
parent 00f60ea7db
commit e85b480ad4
3 changed files with 11 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ local function get_score_sprite()
if script.active_mods['Krastorio2'] then
return 'achievement/kr-matter-production-3'
end
if script.active_mods['space-exploration'] then
return 'achievement/se-there-is-no-spoon'
end
return 'achievement/there-is-no-spoon'
end

View File

@@ -151,7 +151,7 @@ end
local function item_not_sanctioned(item)
local name = item.name
if name:find('capsule') or name == 'cliff-explosives' or name == 'discharge-defense-remote' then
if name:find('capsule') or name == 'cliff-explosives' or name == 'discharge-defense-remote' or name:find('medpack') then
return true
end

View File

@@ -488,4 +488,11 @@ if _DEBUG then
end
end
-- Mod compatibility
Gui.allow_player_to_toggle_top_element_visibility('fp_button_toggle_interface') -- Factory Planner
Gui.allow_player_to_toggle_top_element_visibility('informatron_overhead') -- Informatron
Gui.allow_player_to_toggle_top_element_visibility('py_open_wiki') -- Pyanodon
Gui.allow_player_to_toggle_top_element_visibility('se-overhead_explorer') -- Space Exploration
Gui.allow_player_to_toggle_top_element_visibility('se-overhead_interstellar') -- Space Exploration
return Gui