mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 13:56:30 +01:00
Fixed bug in get command that let you pick something up several times.
This commit is contained in:
parent
71bdc47fbb
commit
bc587dfd0c
1 changed files with 3 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ class CmdGet(MuxCommand):
|
|||
# don't allow picking up player objects, nor exits.
|
||||
caller.msg("You can't get that.")
|
||||
return
|
||||
if obj.location == caller:
|
||||
caller.msg("You already hold that.")
|
||||
return
|
||||
if not obj.access(caller, 'get'):
|
||||
if obj.db.get_err_msg:
|
||||
caller.msg(obj.db.get_err_msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue