1
0
mirror of https://github.com/Sokomine/locks.git synced 2024-11-13 05:40:16 +01:00

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

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