From 18adcce2473549847dd64ff578280e0f55fb572e Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 30 May 2014 16:07:59 +0200 Subject: [PATCH] removed bug which stopped the input field from working --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 7de2992..cec75e0 100644 --- a/init.lua +++ b/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