diff options
Diffstat (limited to 'nomsu_compiler.lua')
| -rw-r--r-- | nomsu_compiler.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index 98f3791..8c01860 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -486,6 +486,14 @@ do return run_lua_fn() end NomsuCompiler.compile = function(self, tree) + if tree.version then + do + local upgrade = self['A' .. string.as_lua_id("upgrade 1 from 2")] + if upgrade then + tree = upgrade(tree, tree.version) + end + end + end local _exp_0 = tree.type if "Action" == _exp_0 then local stub = tree.stub |
