mirror of
https://github.com/Sokomine/locks.git
synced 2024-11-27 17:43:46 +01:00
removed bug which stopped the input field from working
This commit is contained in:
parent
06fb90c119
commit
18adcce247
6
init.lua
6
init.lua
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user