remove code and memory from luacontroller
This commit is contained in:
parent
778faec22f
commit
043a857cee
@ -12,8 +12,8 @@ func (this *LuaControllerBlock) onMapObject(x, y, z int, block *mapblockparser.M
|
||||
nodename := block.GetNodeName(x, y, z)
|
||||
|
||||
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "luacontroller")
|
||||
o.Attributes["code"] = md["code"]
|
||||
o.Attributes["lc_memory"] = md["lc_memory"]
|
||||
//o.Attributes["code"] = md["code"]
|
||||
//o.Attributes["lc_memory"] = md["lc_memory"]
|
||||
|
||||
if nodename == "mesecons_luacontroller:luacontroller_burnt" {
|
||||
o.Attributes["burnt"] = "1"
|
||||
|
@ -23,13 +23,13 @@ var LuacontrollerOverlay = AbstractIconOverlay.extend({
|
||||
},
|
||||
|
||||
getIcon: function(ctrl){
|
||||
if (ctrl.burnt)
|
||||
if (ctrl.attributes.burnt)
|
||||
return LuacontrollerBurntIcon;
|
||||
else
|
||||
return LuacontrollerIcon;
|
||||
},
|
||||
|
||||
createPopup: function(ctrl){
|
||||
return "<pre>" + ctrl.attributes.code + "</pre>";
|
||||
return "LuaController" + (ctrl.attributes.burnt ? "(Burnt)" : "");
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user