Fix door crafter bug.

Should fix #4.
This commit is contained in:
Thomas--S 2016-11-01 16:34:03 +01:00
parent 12f69f9ad4
commit 33af1b0c80

View File

@ -285,6 +285,9 @@ function ts_doors.workshop.start(pos)
end
local meta = minetest.get_meta(pos)
if meta:get_string("working_on") ~= "" then
return
end
local inv = meta:get_inventory()
local selection = meta:get_string("selection")
local material = inv:get_stack("material", 1):get_name()