From 95580a6cef59a58c462fba2f487f058a757935c3 Mon Sep 17 00:00:00 2001 From: Raffson Date: Fri, 1 Mar 2024 22:11:14 +0100 Subject: [PATCH] Compatibility fix for lua5.4 --- resources/tools/import_beacons.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/tools/import_beacons.py b/resources/tools/import_beacons.py index 026b9c99..c6b4d6c9 100644 --- a/resources/tools/import_beacons.py +++ b/resources/tools/import_beacons.py @@ -80,6 +80,14 @@ def beacons_from_terrain(dcs_path: Path, path: Path) -> Iterable[tuple[str, Beac ) ) + lua.execute( + textwrap.dedent( + """ + function math.pow(x,y) return x^y end + """ + ) + ) + bind_gettext = lua.eval( textwrap.dedent( """\