From 2ed09a3fad66a3bfa4e8a2e86e7640b8ae16c929 Mon Sep 17 00:00:00 2001 From: Novatux Date: Tue, 17 Feb 2015 21:01:08 +0100 Subject: [PATCH] Fix crash with floppy programmator --- floppy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/floppy.lua b/floppy.lua index b7f3c48..5b8870c 100644 --- a/floppy.lua +++ b/floppy.lua @@ -83,7 +83,7 @@ minetest.register_node("turtle:floppy_programmator",{ local prog = progs[fields.pselector] local stack = inv:get_stack("floppy", 1):to_table() if stack == nil then return end - if stack.name ~= "turtle:floppy" or stack:is_empty() then return end + if stack.name ~= "turtle:floppy" or stack.count == 0 then return end local contents, update = handle_floppy_meta(stack) set_floppy_contents(stack.metadata, prog) if update then