mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
Fix for light replacers gobbling up lights put into it when it is full.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4126 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
|
||||
if(istype(W, /obj/item/stack/sheet/glass))
|
||||
var/obj/item/stack/sheet/glass/G = W
|
||||
if(G.amount - decrement >= 0 && uses <= max_uses)
|
||||
if(G.amount - decrement >= 0 && uses < max_uses)
|
||||
G.amount -= decrement
|
||||
AddUses(increment)
|
||||
user << "You insert a piece of glass into the [src.name]. You have [uses] lights remaining."
|
||||
@@ -83,7 +83,7 @@
|
||||
if(istype(W, /obj/item/weapon/light))
|
||||
var/obj/item/weapon/light/L = W
|
||||
if(L.status == 0) // LIGHT OKAY
|
||||
if(uses <= max_uses)
|
||||
if(uses < max_uses)
|
||||
AddUses(1)
|
||||
user << "You insert the [L.name] into the [src.name]. You have [uses] lights remaining."
|
||||
user.drop_item()
|
||||
|
||||
Reference in New Issue
Block a user