Skip to content
Permalink
Browse files

Use minetest instead of core namespace, discourage via luacheck

  • Loading branch information
t4im authored and paramat committed Aug 5, 2016
1 parent b408e9c commit 76211624acb92bad1a933fd040bedf05c87c06e5
Showing with 3 additions and 3 deletions.
  1. +1 −1 mods/bones/init.lua
  2. +1 −1 mods/bucket/init.lua
  3. +1 −1 mods/doors/init.lua
@@ -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,
@@ -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
@@ -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 =

0 comments on commit 7621162

Please sign in to comment.
You can’t perform that action at this time.