Skip to content

Commit

Permalink
Machine doesn't take item in creative
Browse files Browse the repository at this point in the history
  • Loading branch information
DonBatman committed Apr 11, 2016
1 parent 7bb7872 commit dcd5ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ on_receive_fields = function(pos, formname, fields, sender)
for i = 0, anzahl-1 do
inv:add_item("res", shape)
end
ingotstack:take_item()
if minetest.setting_getbool("creative_mode") ~= true then
ingotstack:take_item()
end
inv:set_stack("ingot" ,1, ingotstack)
end
})
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dcd5ac8

Please sign in to comment.