removed bug which stopped the input field from working

This commit is contained in:
Sokomine 2014-05-30 16:07:59 +02:00
parent 06fb90c119
commit 18adcce247
1 changed files with 3 additions and 3 deletions

View File

@ -308,10 +308,10 @@ function locks:lock_handle_input( pos, formname, fields, player )
end
-- is this input the lock is supposed to handle?
if( not( fields.locks_sent_lock_command )
or (fields.quit and (fields.quit==true or fields.quit=='true'))
if( ( not( fields.locks_sent_lock_command )
or fields.locks_sent_lock_command == "" )
and (fields.quit and (fields.quit==true or fields.quit=='true'))) then
-- or not( fields.locks_sent_input )
or fields.locks_sent_lock_command == "" ) then
return;
end