Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unloader Machine both ice and ore #4154

Open
Ziiro opened this issue Feb 8, 2025 · 0 comments
Open

[BUG] Unloader Machine both ice and ore #4154

Ziiro opened this issue Feb 8, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@Ziiro
Copy link

Ziiro commented Feb 8, 2025

Round ID:

Testmerges:

Reproduction:

Slide an ore box with ice and other ores into an Unloader Machine's "Unload" spot. It will unload the ice.

If you try the other way, the Ice Unloader does not unload ore. Only ice. This should probably be fully separated into "Ore Unloader" and "Ice Unloader" that do not intersect.

Image

Image

Compare the code:

Unloader

/obj/machinery/mineral/unloading_machine/pickup_item(datum/source, atom/movable/target, atom/oldLoc)
if(istype(target, /obj/structure/ore_box))
var/obj/structure/ore_box/box = target
for(var/obj/item/stack/ore/O in box)
unload_mineral(O)
else if(istype(target, /obj/item/stack/ore))
var/obj/item/stack/ore/O = target
unload_mineral(O)

Ice Machine:

/obj/machinery/mineral/electrolyzer_unloader/pickup_item(datum/source, atom/movable/target, atom/oldLoc)
if(istype(target, /obj/structure/ore_box))
var/obj/structure/ore_box/box = target
for(var/obj/item/stack/ore/ice/chunk in box)
unload_mineral(chunk)
else if(istype(target, /obj/item/stack/ore/ice))
var/obj/item/stack/ore/chunk = target
unload_mineral(chunk)

@Ziiro Ziiro added the Bug Something isn't working label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant