You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -909,7 +909,7 @@ local function StartBrewing(user,recipeTable,ltstate,checkVar)
909
909
ifnotcauldronthen-- security check
910
910
return
911
911
end
912
-
log("2")
912
+
913
913
iflicence.licence(user) then--checks if user is citizen or has a licence
914
914
return-- avoids crafting if user is neither citizen nor has a licence
915
915
end
@@ -918,31 +918,28 @@ local function StartBrewing(user,recipeTable,ltstate,checkVar)
918
918
user:inform("Du brichst deine Arbeit vor dem "..USER_POSITION_LIST[user.id]..". Arbeitsschritt ab.", "You abort your work before the "..USER_POSITION_LIST[user.id].." work step.")
919
919
return
920
920
end
921
-
log("3")
921
+
922
922
ifnotcheckVarandltstate==Action.nonethen
923
923
localcallback=function(dialog)
924
924
localsuccess=dialog:getSuccess()
925
925
ifsuccessthen
926
926
localselected=dialog:getSelectedIndex()+1
927
927
USER_POSITION_LIST[user.id] =selected
928
-
log("7")
929
928
StartBrewing(user, recipeTable,ltstate,true)
930
929
end
931
930
end
932
931
933
932
localdialog=SelectionDialog(common.GetNLS(user,"Rezept","Recipe"), common.GetNLS(user,"Wähle die Zutat aus, ab welcher das Rezept abgearbeitet werden soll.","Select the ingredient which you want to start to brew from."), callback)
0 commit comments