BZ Lib


Library code for BZ mods

Utilities
an hour ago
2.0 - 2.1
3.43K

b ✅ remove_prerequisite errors on empty prereq list

a month ago

If a technology has no prerequisites and the remove_prerequisite function is called, the function errors out due to the empty table.
Changing line 786 to

if technology and technology.prerequisites then

fixes the issue. I'm not very good with lua, so there's probably a more elegant way to do this, but it works.

a month ago

Fixed

a month ago

Seems good, thank you!

New response