From d56cafdee29e9f32a8e7a77b39ae1e96351fd6f7 Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Tue, 28 Nov 2023 18:40:17 -0600 Subject: [PATCH] fix crash with farming script+pySE --- scripts/farming/farming.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/farming/farming.lua b/scripts/farming/farming.lua index b9368ee8..915c2fa8 100644 --- a/scripts/farming/farming.lua +++ b/scripts/farming/farming.lua @@ -11,6 +11,7 @@ local farm_buildings = require 'farm-building-list' ---@param kingdom_name 'animal' | 'plant' | 'fungi' function Farming.register_type(farm_name, kingdom_name) log('remote registered farm \'' .. farm_name .. '\' (' .. kingdom_name .. ')') + global.farm_prototypes = global.farm_prototypes or farm_buildings global.farm_prototypes[farm_name] = kingdom_name end