File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ local function may_replace(pos, player)
149
149
end
150
150
151
151
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 ()))
153
153
if obj then
154
154
obj :setvelocity ({
155
155
x = math.random (- 10 , 10 ) / 9 ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ minetest.register_craftitem("bucket:bucket_empty", {
141
141
else
142
142
local pos = user :getpos ()
143
143
pos .y = math.floor (pos .y + 0.5 )
144
- core .add_item (pos , liquiddef .itemname )
144
+ minetest .add_item (pos , liquiddef .itemname )
145
145
end
146
146
147
147
-- set to return empty buckets minus 1
Original file line number Diff line number Diff line change 185
185
local function on_place_node (place_to , newnode ,
186
186
placer , oldnode , itemstack , pointed_thing )
187
187
-- Run script hook
188
- for _ , callback in ipairs (core .registered_on_placenodes ) do
188
+ for _ , callback in ipairs (minetest .registered_on_placenodes ) do
189
189
-- Deepcopy pos, node and pointed_thing because callback can modify them
190
190
local place_to_copy = {x = place_to .x , y = place_to .y , z = place_to .z }
191
191
local newnode_copy =
You can’t perform that action at this time.
0 commit comments