Skip to content

Commit

Permalink
Fixes microwave food duplication (#6222)
Browse files Browse the repository at this point in the history
# About the pull request
Fixes #6128, probably.

# Changelog
:cl:
fix: Fixes microwave food duplication
/:cl:

Co-authored-by: DOOM <N/A>
  • Loading branch information
vero5123 authored May 3, 2024
1 parent 79df661 commit d975ca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/machinery/kitchen/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@
//************************************/

/obj/structure/machinery/microwave/proc/cook(time_multiplier = 1)
if(inoperable())
if(inoperable() || operating)
return

start()
if (reagents.total_volume==0 && !(locate(/obj) in contents)) //dry run
if (!wzhzhzh(10 * time_multiplier))
Expand Down

0 comments on commit d975ca0

Please sign in to comment.