mod compat

This commit is contained in:
Brevven 2025-01-07 04:08:50 -08:00
parent deb1403eb8
commit b31fc70f75
4 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.13
Date: 2025-01-07
Fixes:
- Improve some mod compatibility
---------------------------------------------------------------------------------------------------
Version: 2.0.12
Date: 2025-01-06
Changes:

View file

@ -119,7 +119,12 @@ end
-- Add the gleba rock. If it exists, still add resource to mine from it
function util.add_gleba_rock(resource, amount_min, amount_max)
if not data.raw.planet.gleba then return end
if (not data.raw.planet.gleba or
not data.raw.planet.gleba.map_gen_settings or -- attempted compatibility fixes
not data.raw.planet.gleba.map_gen_settings.autoplace_settings or
not data.raw.planet.gleba.map_gen_settings.autoplace_settings.entity or
not data.raw.planet.gleba.map_gen_settings.autoplace_settings.entity.settings
) then return end
if not data.raw["simple-entity"]["gleba-rock"] then
local autoplace_utils = require("autoplace_utils")
local hit_effects = require ("__base__.prototypes.entity.hit-effects")

View file

@ -1,6 +1,6 @@
{
"name": "bzlead",
"version": "2.0.12",
"version": "2.0.13",
"factorio_version": "2.0",
"title": "Lead",
"author": "Brevven",

View file

@ -1,5 +1,5 @@
-- Deadlock stacking recipes
if deadlock then
if deadlock and deadlock["add_stack"] then
deadlock.add_stack("lead-ore", "__bzlead__/graphics/icons/stacked/lead-ore-stacked.png", "deadlock-stacking-1", 64)
deadlock.add_stack("lead-plate", "__bzlead__/graphics/icons/stacked/lead-plate-stacked.png" , "deadlock-stacking-1", 64)
if mods["Krastorio2"] then