[0.17.31] Certain blueprint flags are ignored for item-request-proxy
Posted: Sat Apr 13, 2019 2:45 pm
Dear devs,
i just stumbled upon the following issue:
If i add the "not-blueprintable" and "not-deconstructible" flags to an item-request-proxy, i'm still able to deconstruct those entities with a deconstruction planner.
Add the "not-blueprintable" and "not-deconstructible" flags to the default "item-request-proxy" in demo-entities.lua:
2.
Get a deconstruction planner and draw a selection box around an entity with a item proxy above it
3.
Release the deconstruction planner.
Expected behavior: The item request proxy should still be there
Observed behavior: The item request proxy has been deleted
i just stumbled upon the following issue:
If i add the "not-blueprintable" and "not-deconstructible" flags to an item-request-proxy, i'm still able to deconstruct those entities with a deconstruction planner.
Steps to reproduce:
1.Add the "not-blueprintable" and "not-deconstructible" flags to the default "item-request-proxy" in demo-entities.lua:
Code: Select all
{
type = "item-request-proxy",
name = "item-request-proxy",
picture =
{
filename = "__core__/graphics/logistic-delivery.png",
flags = { "icon" },
priority = "extra-high",
width = 64,
height = 64,
shift = {0, 0},
scale = 0.5
},
use_target_entity_alert_icon_shift = true,
flags = {"not-on-map", "placeable-off-grid", "not-blueprintable", "not-deconstructable"},
minable = { mining_time = 0, results={}},
collision_box = {{0, 0}, {0, 0}},
selection_box = {{-0.5, -0.4}, {0.5, 0.6}}
},
Get a deconstruction planner and draw a selection box around an entity with a item proxy above it
3.
Release the deconstruction planner.
Expected behavior: The item request proxy should still be there
Observed behavior: The item request proxy has been deleted