1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 13:25:21 +02:00

Added files via upload

This commit is contained in:
Foghrye4
2016-04-04 22:18:00 +04:00
parent 890ea8af98
commit 601ce77591
3 changed files with 6 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ core.register_entity(":__builtin:item", {
on_punch = function(self, hitter)
local inv = hitter:get_inventory()
if inv and self.itemstring ~= '' then
local left = inv:add_item("main", self.itemstring)
local left = hitter:add_item("main", self.itemstring)
if left and not left:is_empty() then
self.itemstring = left:to_string()
return