From ab263581dafd0a60ac7d5db7ec5946a8900167ec Mon Sep 17 00:00:00 2001 From: Dennis Schmitt Date: Sat, 21 Dec 2024 17:10:36 +0100 Subject: [PATCH] [#6] Fix lua error while entering empty fields --- FS25_BeesRevamp/modDesc.xml | 38 +++++++++---------- FS25_BeesRevamp/src/beehivesystemextended.lua | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/FS25_BeesRevamp/modDesc.xml b/FS25_BeesRevamp/modDesc.xml index 7a60d99..d40be8a 100644 --- a/FS25_BeesRevamp/modDesc.xml +++ b/FS25_BeesRevamp/modDesc.xml @@ -1,11 +1,11 @@ - - - Peppie84 - 1.0.0.0 - - <en>Bees Revamp</en> - - + + + Peppie84 + 1.0.0.0 + + <en>Bees Revamp</en> + + GitHub. -]]> +]]> GitHub. -]]> +]]> GitHub. -]]> - - icon_BeesRevamp.dds - - - - - - +]]> + + icon_BeesRevamp.dds + + + + + + \ No newline at end of file diff --git a/FS25_BeesRevamp/src/beehivesystemextended.lua b/FS25_BeesRevamp/src/beehivesystemextended.lua index e7023dd..1192cf0 100644 --- a/FS25_BeesRevamp/src/beehivesystemextended.lua +++ b/FS25_BeesRevamp/src/beehivesystemextended.lua @@ -309,7 +309,7 @@ function BeehiveSystemExtended:fieldAddField(data, box) local beehiveSystemExtended = g_currentMission.beehiveSystem local fruitTypeIndex = data.lastFruitTypeIndex - if fruitTypeIndex == nil then + if fruitTypeIndex == nil or fruitTypeIndex == 0 then return end