Skip to content

Commit

Permalink
Fix itemstacks dropping single item on dig and on blast
Browse files Browse the repository at this point in the history
  • Loading branch information
hkzorman committed Feb 7, 2018
1 parent 00f97ee commit 5a9914c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function itemshelf.register_shelf(name, def)
x=math.random(pos.x - 0.5, pos.x + 0.5),
y=pos.y,
z=math.random(pos.z - 0.5, pos.z + 0.5)}
minetest.add_item(pos, item:get_name())
minetest.add_item(pos, item:to_string())
end
-- Remove node
minetest.remove_node(pos)
Expand All @@ -218,7 +218,7 @@ function itemshelf.register_shelf(name, def)
x=math.random(pos.x - 0.5, pos.x + 0.5),
y=pos.y,
z=math.random(pos.z - 0.5, pos.z + 0.5)}
minetest.add_item(pos, item:get_name())
minetest.add_item(pos, item:to_string())
end
-- Remove node
minetest.remove_node(pos)
Expand Down

0 comments on commit 5a9914c

Please sign in to comment.