Merge branch 'master' into develop

This commit is contained in:
Griatch 2018-10-26 20:52:44 +02:00
commit 1867bed6d2
5 changed files with 58 additions and 6 deletions

View file

@ -3097,7 +3097,8 @@ class CmdSpawn(COMMAND_DEFAULT_CLASS):
return
# we have a prototype, check access
prototype = prototypes[0]
if not caller.locks.check_lockstring(caller, prototype.get('prototype_locks', ''), access_type='spawn'):
if not caller.locks.check_lockstring(
caller, prototype.get('prototype_locks', ''), access_type='spawn', default=True):
caller.msg("You don't have access to use this prototype.")
return