mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Protolathe and Circuit Printer check for adjacency when adding sheets. (#8032)
This commit is contained in:
@@ -138,6 +138,9 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
var/amount = round(input("How many sheets do you want to add?") as num)
|
||||
if(!O)
|
||||
return
|
||||
if(!Adjacent(user))
|
||||
to_chat(user, "<span class='notice'>\The [src] is too far away for you to insert this.</span>")
|
||||
return
|
||||
if(amount <= 0)//No negative numbers
|
||||
return
|
||||
if(amount > stack.get_amount())
|
||||
|
||||
@@ -132,6 +132,9 @@
|
||||
var/amount = round(input("How many sheets do you want to add?") as num)//No decimals
|
||||
if(!O)
|
||||
return
|
||||
if(!Adjacent(user))
|
||||
to_chat(user, "<span class='notice'>\The [src] is too far away for you to insert this.</span>")
|
||||
return
|
||||
if(amount <= 0)//No negative numbers
|
||||
return
|
||||
if(amount > stack.get_amount())
|
||||
|
||||
Reference in New Issue
Block a user