mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Fixes material sniffers not being able to find materials properly (#75354)
 stack/init was adding stacks to the global list if they had LESS THAN 10 units, though the sniffer only looks for things >= 10 units. Flipped bracket, gg. add() was also using += instead of |=, which resulted in duplicate entries for the same object in the global list when adding stuff to a stack. 🆑 ShizCalev fix: The materials sniffer now actually works! /🆑
This commit is contained in:
@@ -227,7 +227,7 @@ GLOBAL_LIST_EMPTY(sniffable_sheets)
|
||||
worn_icon_state = "pinpointer_black"
|
||||
|
||||
/obj/item/pinpointer/material_sniffer/scan_for_target()
|
||||
if(target)
|
||||
if(target || !GLOB.sniffable_sheets.len)
|
||||
return
|
||||
var/obj/item/stack/sheet/new_sheet_target
|
||||
var/closest_distance = INFINITY
|
||||
|
||||
Reference in New Issue
Block a user