fix typo in text brick updatee
This commit is contained in:
parent
48c89327c3
commit
2a85fc2b7e
@ -36,8 +36,9 @@ function LogicGate_Keyboard_Data::LuaLogic_PressKey(%data, %brick, %key, %state)
|
|||||||
|
|
||||||
function serverCmdLInputKey(%client, %key, %state){
|
function serverCmdLInputKey(%client, %key, %state){
|
||||||
%brick = %client.Logic_InputKeyboard;
|
%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);
|
%brick.getDatablock().LuaLogic_PressKey(%brick, %key, %state);
|
||||||
|
if(%state) %client.player.playThread(3, plant);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ local function getBit(gate, val)
|
|||||||
local printname = textbrick2_idxToPrint[printid] or "space"
|
local printname = textbrick2_idxToPrint[printid] or "space"
|
||||||
gatedata.printname = printname
|
gatedata.printname = printname
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
gatedata.listenState = "wait"
|
gatedata.listenState = "wait"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user