mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
Makes stack_trace error message a little more descriptive.
What's worse than vagueposting is vagueposting in runtime logs at spam rate of 36000 messages per hour.
This commit is contained in:
@@ -241,7 +241,7 @@
|
||||
//Ensures that code dealing with stacks uses the same logic
|
||||
/obj/item/stack/proc/can_use(var/used)
|
||||
if(used < 0 || (used != round(used)))
|
||||
stack_trace("Tried to use a bad stack amount: [used]")
|
||||
stack_trace("Tried to use a bad stack amount: [used]. Location: [src.loc] ([src.x],[src.y],[src.z])") //CHOMPEdit
|
||||
return 0
|
||||
if(get_amount() < used)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user