mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 05:31:53 +00:00
Merge pull request #5671 from lbnesquik/Kates-Fax-Fix
Prevent people from removing papers from any distances.
This commit is contained in:
@@ -78,6 +78,9 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
|
|||||||
|
|
||||||
else if(href_list["remove"])
|
else if(href_list["remove"])
|
||||||
if(copyitem)
|
if(copyitem)
|
||||||
|
if(get_dist(usr, src) >= 2)
|
||||||
|
to_chat(usr, "\The [copyitem] is too far away for you to remove it.")
|
||||||
|
return
|
||||||
copyitem.loc = usr.loc
|
copyitem.loc = usr.loc
|
||||||
usr.put_in_hands(copyitem)
|
usr.put_in_hands(copyitem)
|
||||||
to_chat(usr, "<span class='notice'>You take \the [copyitem] out of \the [src].</span>")
|
to_chat(usr, "<span class='notice'>You take \the [copyitem] out of \the [src].</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user