Fix items attempting to directly access/touch amount on stack var.

PR https://github.com/VOREStation/VOREStation/pull/11454 set var amount on stacks to private, necessitating using get_amount() to read the amount currently left in a stack, rather than just directly accessing the var.
This commit is contained in:
Rykka
2021-09-03 18:26:32 -07:00
parent 2c6a698f00
commit 0d5efb3d70
4 changed files with 7 additions and 11 deletions
@@ -31,7 +31,7 @@
..()
var/obj/item/stack/material/lead/M = I
if(istype(M))
if(M.amount>5)
if(M.get_amount() > 5)
to_chat(user,"<span class='notice'>You add a lead shell to the blitz rod.</span>")
qdel(src)
var/obj/item/weapon/fuel_assembly/blitz/shielded/rod = new(get_turf(user))