diff --git a/server/mapobject/luacontroller.go b/server/mapobject/luacontroller.go index 57cc54b..e15e85a 100644 --- a/server/mapobject/luacontroller.go +++ b/server/mapobject/luacontroller.go @@ -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" diff --git a/server/static/js/overlays/LuacontrollerOverlay.js b/server/static/js/overlays/LuacontrollerOverlay.js index 15c3ac7..7f41aa4 100644 --- a/server/static/js/overlays/LuacontrollerOverlay.js +++ b/server/static/js/overlays/LuacontrollerOverlay.js @@ -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 "
" + ctrl.attributes.code + ""; + return "LuaController" + (ctrl.attributes.burnt ? "(Burnt)" : ""); } });