fix typo in text brick updatee

This commit is contained in:
Redo 2022-11-12 17:26:43 -06:00
parent 48c89327c3
commit 2a85fc2b7e
2 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,9 @@ function LogicGate_Keyboard_Data::LuaLogic_PressKey(%data, %brick, %key, %state)
function serverCmdLInputKey(%client, %key, %state){
%brick = %client.Logic_InputKeyboard;
if(isObject(%brick) && %client.Logic_InputActive){
if(isObject(%client.player) && isObject(%brick) && %client.Logic_InputActive){
%brick.getDatablock().LuaLogic_PressKey(%brick, %key, %state);
if(%state) %client.player.playThread(3, plant);
}
}

View File

@ -30,7 +30,7 @@ local function getBit(gate, val)
local printname = textbrick2_idxToPrint[printid] or "space"
gatedata.printname = printname
end
Gate.cb(gate, (gatedata.colorid or -1).." "..(gatedata.printdomain or "terminal").." "..(gatedata.printname or "_")).." "..(gatedata.colorfx or -1)
Gate.cb(gate, (gatedata.colorid or -1).." "..(gatedata.printdomain or "terminal").." "..(gatedata.printname or "_").." "..(gatedata.colorfx or -1))
end
gatedata.listenState = "wait"