mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-21 05:04:10 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user