Fix unpinnable panels (again)

main
copygirl 1 year ago
parent a1211c1a72
commit 51ccedd5f4
  1. 6
      init.lua

@ -106,9 +106,9 @@ do
retroactive = true,
func = function(name, def)
if def.groups and def.groups.door then
local panel = def.drop_in_place -- The panel version of the door.
local pin = def.drop -- Dropped item is the door's pin.
replace_panel_on_rightclick(panel.name, pin.name)
local panel = def.drop_in_place.name -- The panel version of the door.
local pin = def.drop_non_silktouch or def.drop -- Dropped item is the door's pin.
replace_panel_on_rightclick(panel, pin)
end
end,
})

Loading…
Cancel
Save