Skip to content
Permalink
Browse files
Fix "ghost stacks" created when a player clicks an item on the ground:
since the object is not immediately removed, any other code may still
think an object is there, therefore leading to item duplication. This code
therefore sets the itemstring to '' after the object is picked up to avoid
such issues
  • Loading branch information
Ekdohibs committed Mar 22, 2014
1 parent 5fefc4b commit 936c6f577ad70c9a467eaed58233e737671375df
Showing 1 changed file with 1 addition and 0 deletions.
@@ -116,6 +116,7 @@ minetest.register_entity("__builtin:item", {
return
end
end
self.itemstring = ''
self.object:remove()
end,
})

0 comments on commit 936c6f5

Please sign in to comment.