From e34e9536b3337ed082763a7be334c5185a070490 Mon Sep 17 00:00:00 2001 From: danielmartin0 Date: Mon, 14 Oct 2024 15:31:53 +0100 Subject: [PATCH] pirates: prevent autostash in captain's cabin chests --- maps/pirates/surfaces/cabin.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maps/pirates/surfaces/cabin.lua b/maps/pirates/surfaces/cabin.lua index b2be0d54..1892906d 100644 --- a/maps/pirates/surfaces/cabin.lua +++ b/maps/pirates/surfaces/cabin.lua @@ -295,6 +295,10 @@ function Public.create_cabin_surface() e2.rotatable = false e2.operable = false end + + if e2.name == 'wooden-chest' then + e2.force = 'environment' -- Patch to stop the autostash helper from inserting items in these chests + end end -- local es2 = Common.build_from_blueprint(Public.Data.operable_entities_bp, surface, {x=5, y=-4}, boat.force_name) -- for _, e2 in pairs(es2) do