diff --git a/changelog.txt b/changelog.txt index 82a0d5e5..95db9152 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Date: ??? Changes: - Fix crash in beacon migration. Resolves https://github.com/pyanodon/pybugreports/issues/1515 - Fixed a crash when blueprinting inserters after another mod has edited the blueprint. Resolves https://github.com/pyanodon/pybugreports/issues/1526 + - Fixed missing prototype reference in programmable inserters. Resolves https://github.com/pyanodon/pybugreports/issues/1523 --------------------------------------------------------------------------------------------------- Version: 3.1.2 Date: 2026-07-09 diff --git a/data.lua b/data.lua index 357da388..2fbd1761 100644 --- a/data.lua +++ b/data.lua @@ -168,6 +168,9 @@ require "prototypes/menu-simulations" -- sprites require "prototypes/sprites/sprites" +-- util entities +require "prototypes/util" + data.raw["utility-constants"].default.main_menu_background_image_location = "__pycoalprocessinggraphics__/graphics/pycp-wall.jpg" -- adding fuel value to liquids diff --git a/prototypes/util.lua b/prototypes/util.lua new file mode 100644 index 00000000..b4dbd5d2 --- /dev/null +++ b/prototypes/util.lua @@ -0,0 +1,27 @@ +-- for all of those internal entities that dont really fit anywhere else + +data:extend{ + { + type = "proxy-container", + name = "py-dynamic-inserter-target", + icon = util.empty_icon().icon, + draw_inventory_content = false, + collision_mask = {layers = {}}, + selection_box = {{-0.25, -0.25}, {0.25, 0.25}}, + flags = { + "not-rotatable", + "placeable-neutral", + "placeable-off-grid", + "not-repairable", + "not-on-map", + "not-deconstructable", + "not-blueprintable", + "hide-alt-info", + "not-upgradable" + }, + allow_copy_paste = false, + selectable_in_game = false, + hidden = true, + hidden_in_factoriopedia = true + } +} \ No newline at end of file