From bd3cc74d0576250af06a367369b7ea709d5581f4 Mon Sep 17 00:00:00 2001 From: ShadowNinja <noreply@gmail.com> Date: Tue, 24 Sep 2013 23:09:20 +0200 Subject: [PATCH] Don't consume items or drain power when there isn't room for the results --- technic/machines/register/common.lua | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua index 475e35b..664f43b 100644 --- a/technic/machines/register/common.lua +++ b/technic/machines/register/common.lua @@ -70,7 +70,7 @@ if result and result.item then meta:set_int("cook_time", 0) -- check if there's room for output in "dst" list - if inv:room_for_item("dst", result) then + if inv:room_for_item("dst", result.item) then srcstack = inv:get_stack("src", 1) srcstack:take_item() inv:set_stack("src", 1, srcstack) -- Gitblit v1.8.0