Fixes magazines (#30813)

This commit is contained in:
Exxion
2021-09-20 07:27:03 -04:00
committed by GitHub
parent b575a71b92
commit 14358832b0

View File

@@ -89,7 +89,7 @@
if(istype(A, /obj/item/ammo_casing)) //loading a bullet into the magazine or box
var/obj/item/ammo_casing/AC = A
var/accepted = 0
if((exact && (istype(AC, ammo_type))) || (!exact && (AC.caliber == caliber)))
if((exact && (AC.type == text2path(ammo_type))) || (!exact && (AC.caliber == caliber)))
accepted = 1
else
to_chat(user, "<span class='warning'>\the [AC] does not fit into [src]. </span>")