mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #5641 from CHOMPStation2/upstream-merge-14414
[MIRROR] Fixes NIF repair tool using up nanopaste when full
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/obj/item/device/nifrepairer/attackby(obj/W, mob/user)
|
||||
if(istype(W,/obj/item/stack/nanopaste))
|
||||
var/obj/item/stack/nanopaste/np = W
|
||||
if(np.use(1) && supply.get_free_space() >= efficiency)
|
||||
if((supply.get_free_space() >= efficiency) && np.use(1))
|
||||
to_chat(user, "<span class='notice'>You convert some nanopaste into programmed nanites inside \the [src].</span>")
|
||||
supply.add_reagent(id = "nifrepairnanites", amount = efficiency)
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user