Skip to content

Commit 7621162

Browse files
t4imparamat
authored andcommittedAug 9, 2016
Use minetest instead of core namespace, discourage via luacheck
1 parent b408e9c commit 7621162

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

Diff for: ‎mods/bones/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ local function may_replace(pos, player)
149149
end
150150

151151
local drop = function(pos, itemstack)
152-
local obj = core.add_item(pos, itemstack:take_item(itemstack:get_count()))
152+
local obj = minetest.add_item(pos, itemstack:take_item(itemstack:get_count()))
153153
if obj then
154154
obj:setvelocity({
155155
x = math.random(-10, 10) / 9,

Diff for: ‎mods/bucket/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ minetest.register_craftitem("bucket:bucket_empty", {
141141
else
142142
local pos = user:getpos()
143143
pos.y = math.floor(pos.y + 0.5)
144-
core.add_item(pos, liquiddef.itemname)
144+
minetest.add_item(pos, liquiddef.itemname)
145145
end
146146

147147
-- set to return empty buckets minus 1

Diff for: ‎mods/doors/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ end
185185
local function on_place_node(place_to, newnode,
186186
placer, oldnode, itemstack, pointed_thing)
187187
-- Run script hook
188-
for _, callback in ipairs(core.registered_on_placenodes) do
188+
for _, callback in ipairs(minetest.registered_on_placenodes) do
189189
-- Deepcopy pos, node and pointed_thing because callback can modify them
190190
local place_to_copy = {x = place_to.x, y = place_to.y, z = place_to.z}
191191
local newnode_copy =

0 commit comments

Comments
 (0)
Please sign in to comment.