made gates with no uiname not display info when clicked

This commit is contained in:
Redo
2019-04-18 23:11:18 -05:00
parent 0137af9d21
commit 7f1c5ea417
2 changed files with 14 additions and 8 deletions

View File

@ -189,10 +189,13 @@ package LuaLogic_Bricks
%data = %hit.getDataBlock();
if(%data.isLogic)
{
if(%data.isLogicInput)
if(%data.isLogicInput){
%data.Logic_onInput(%hit, %hitPos, %hitNorm, %client);
else
lualogic_send("GINFO;" @ %client @ ";" @ %hit);
}else{
if(%data.isLogicWire || %data.logicUIName!$=""){
lualogic_send("GINFO;" @ %client @ ";" @ %hit);
}
}
}
}
}