Get mod name in data phase

Place to get help with not working mods / modding interface.
Post Reply
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Get mod name in data phase

Post by moon69 »

In data.lua, I can scrape the current mod name from debug.getinfo(1).source, but is there a more elegant way?

Post Reply

Return to “Modding help”