ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord. From April 26 to May 25, errors may occur in the Wiki, as we will be carrying out a major update to the information processing modules.
Module:No globals
From Eco - English Wiki
Revision as of 07:51, 1 May 2021 by ZeelNightwolf(talk | contribs)(1 revision imported: Attempt to add Navbox)
localmt=getmetatable(_G)or{}functionmt.__index(t,k)ifk~='arg'thenerror('Tried to read nil global '..tostring(k),2)endreturnnilendfunctionmt.__newindex(t,k,v)ifk~='arg'thenerror('Tried to write global '..tostring(k),2)endrawset(t,k,v)endsetmetatable(_G,mt)