Use minetest instead of core namespace, discourage via luacheck

This commit is contained in:
Tim
2016-08-05 14:55:43 +02:00
committed by paramat
parent b408e9cce6
commit 76211624ac
3 changed files with 3 additions and 3 deletions

View File

@ -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 =