Skip to content

Commit

Permalink
[#6] Fix lua error while entering empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Peppie84 committed Dec 21, 2024
1 parent e4e6cb4 commit ab26358
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions FS25_BeesRevamp/modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="94">
<author>Peppie84</author>
<version>1.0.0.0</version>
<title>
<en>Bees Revamp</en>
</title>
<description>
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="94">
<author>Peppie84</author>
<version>1.0.0.0</version>
<title>
<en>Bees Revamp</en>
</title>
<description>
<en><![CDATA[
With this mod, bees in Farming Simulator become more realistic and a bit more complex but also more productive.
Expand Down Expand Up @@ -33,7 +33,7 @@ Additional supported bee hives:
- Beehives Pack by Zoli708
For more information, help, and reporting issues please visit <a href='https://github.com/Peppie84/FS25_BeesRevamp'>GitHub</a>.
]]></en>
]]></en>
<de><![CDATA[
Mit dieser Mod werden die Bienen im Landwirtschafts-Simulator realistischer und auch etwas komplexer aber dafür auch ertragreicher.
Expand Down Expand Up @@ -61,7 +61,7 @@ Zusätzlich unterstützte Bienenstöcke:
- Bienenstock-Paket von Zoli708
Weitere Informationen, Hilfe und Probleme melden findest Du unter <a href='https://github.com/Peppie84/FS22_BeesRevamp'>GitHub</a>.
]]></de>
]]></de>
<it><![CDATA[
Con questa mod, le api in Farming Simulator diventano più realistiche e un po' più complesse ma anche più produttive.
Expand Down Expand Up @@ -89,12 +89,12 @@ Ulteriori alveari supportati:
- Beehives Pack by Zoli708
Per ulteriori informazioni, aiuto e segnalazione di problemi, visita <a href='https://github.com/Peppie84/FS22_BeesRevamp'>GitHub</a>.
]]></it>
</description>
<iconFilename>icon_BeesRevamp.dds</iconFilename>
<multiplayer supported="true" />
<extraSourceFiles>
<sourceFile filename="src/main.lua" />
</extraSourceFiles>
<l10n filenamePrefix="translations/translation" />
</modDesc>
]]></it>
</description>
<iconFilename>icon_BeesRevamp.dds</iconFilename>
<multiplayer supported="true" />
<extraSourceFiles>
<sourceFile filename="src/main.lua" />
</extraSourceFiles>
<l10n filenamePrefix="translations/translation" />
</modDesc>
2 changes: 1 addition & 1 deletion FS25_BeesRevamp/src/beehivesystemextended.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab26358

Please sign in to comment.