mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-16 02:38:37 +07:00
add mod name to js print() (#1677)
* add mod name to js print() * add mod name to errors
This commit is contained in:
@ -5,7 +5,7 @@ const log = function(context, obj){
|
||||
var scriptName = "base.js"
|
||||
var modName = "none"
|
||||
|
||||
const print = text => log(scriptName, text);
|
||||
const print = text => log(modName + "/" + scriptName, text);
|
||||
|
||||
const extendContent = function(classType, name, params){
|
||||
return new JavaAdapter(classType, params, name)
|
||||
|
Reference in New Issue
Block a user