Use minetest instead of core namespace, discourage via luacheck
This commit is contained in:
parent
b408e9cce6
commit
76211624ac
3 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ local function may_replace(pos, player)
|
|||
end
|
||||
|
||||
local drop = function(pos, itemstack)
|
||||
local obj = core.add_item(pos, itemstack:take_item(itemstack:get_count()))
|
||||
local obj = minetest.add_item(pos, itemstack:take_item(itemstack:get_count()))
|
||||
if obj then
|
||||
obj:setvelocity({
|
||||
x = math.random(-10, 10) / 9,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue