diff options
author | orwell96 <orwell@bleipb.de> | 2021-03-22 11:23:42 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-03-22 11:23:42 +0100 |
commit | 5d372b1cf127733d9addd832f584f05d87437b29 (patch) | |
tree | b9115bac77d8843c259182705fbf848bf852aeac /advtrains_luaautomation/init.lua | |
parent | 4fcc5527707d233535a9ed106cbd90892d95895c (diff) | |
download | advtrains-5d372b1cf127733d9addd832f584f05d87437b29.tar.gz advtrains-5d372b1cf127733d9addd832f584f05d87437b29.tar.bz2 advtrains-5d372b1cf127733d9addd832f584f05d87437b29.zip |
Increase size of LuaATC code input forms to 15x12 units
The current size of the code form is rather limiting as it fills only a small part of the screen.
Also adds global constant in init.lua so this can easily adapted in the future
Diffstat (limited to 'advtrains_luaautomation/init.lua')
-rw-r--r-- | advtrains_luaautomation/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua index a54fb25..b6fe464 100644 --- a/advtrains_luaautomation/init.lua +++ b/advtrains_luaautomation/init.lua @@ -16,6 +16,9 @@ atlatc = { envs = {}} minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) +--Size of code input forms in X,Y notation. Must be at least 10x10 +atlatc.CODE_FORM_SIZE = "15,12" + --assertt helper. error if a variable is not of a type function assertt(var, typ) if type(var)~=typ then |