mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
[s] Fixes ore redemption exploit (#40454)
* Fixes bluespace crystal memes * Generalizes refined type check * generalizes here as well * Now now, no need to be lazy. * removes duplicate istype check
This commit is contained in:
@@ -52,6 +52,9 @@
|
||||
var/datum/component/material_container/mat_container = materials.mat_container
|
||||
if (!mat_container)
|
||||
return
|
||||
|
||||
if(O.refined_type == null)
|
||||
return
|
||||
|
||||
ore_buffer -= O
|
||||
|
||||
@@ -179,6 +182,13 @@
|
||||
if(user.transferItemToLoc(W, src))
|
||||
inserted_disk = W
|
||||
return TRUE
|
||||
|
||||
var/obj/item/stack/ore/O = W
|
||||
if(istype(O))
|
||||
if(O.refined_type == null)
|
||||
to_chat(user, "<span class='notice'>[O] has already been refined!</span>")
|
||||
return
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/machinery/mineral/ore_redemption/multitool_act(mob/living/user, obj/item/multitool/I)
|
||||
|
||||
Reference in New Issue
Block a user