Skip to content

Commit

Permalink
Use minetest instead of core namespace, discourage via luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
t4im authored and paramat committed Aug 9, 2016
1 parent b408e9c commit 7621162
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mods/bones/init.lua
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion mods/bucket/init.lua
Expand Up @@ -141,7 +141,7 @@ minetest.register_craftitem("bucket:bucket_empty", {
else
local pos = user:getpos()
pos.y = math.floor(pos.y + 0.5)
core.add_item(pos, liquiddef.itemname)
minetest.add_item(pos, liquiddef.itemname)
end

-- set to return empty buckets minus 1
Expand Down
2 changes: 1 addition & 1 deletion mods/doors/init.lua
Expand Up @@ -185,7 +185,7 @@ end
local function on_place_node(place_to, newnode,
placer, oldnode, itemstack, pointed_thing)
-- Run script hook
for _, callback in ipairs(core.registered_on_placenodes) do
for _, callback in ipairs(minetest.registered_on_placenodes) do
-- Deepcopy pos, node and pointed_thing because callback can modify them
local place_to_copy = {x = place_to.x, y = place_to.y, z = place_to.z}
local newnode_copy =
Expand Down

0 comments on commit 7621162

Please sign in to comment.