forked from nalc/nalc_game
Replace minetest.env: with minetest.
This commit is contained in:
@ -79,14 +79,14 @@ minetest.register_craftitem(":rat", {
|
||||
description = "Rat",
|
||||
inventory_image = "rat.png",
|
||||
on_drop = function(item, dropper, pos)
|
||||
minetest.env:add_rat(pos)
|
||||
minetest.add_rat(pos)
|
||||
item:take_item()
|
||||
return item
|
||||
end,
|
||||
on_place = function(item, dropped, pointed)
|
||||
pos = minetest.get_pointed_thing_position(pointed, true)
|
||||
if pos ~= nil then
|
||||
minetest.env:add_rat(pos)
|
||||
minetest.add_rat(pos)
|
||||
item:take_item()
|
||||
return item
|
||||
end
|
||||
@ -104,14 +104,14 @@ minetest.register_craftitem(":firefly", {
|
||||
inventory_image = "firefly.png",
|
||||
groups = {not_in_creative_inventory=1},
|
||||
on_drop = function(item, dropper, pos)
|
||||
minetest.env:add_firefly(pos)
|
||||
minetest.add_firefly(pos)
|
||||
item:take_item()
|
||||
return item
|
||||
end,
|
||||
on_place = function(item, dropped, pointed)
|
||||
pos = minetest.get_pointed_thing_position(pointed, true)
|
||||
if pos ~= nil then
|
||||
minetest.env:add_firefly(pos)
|
||||
minetest.add_firefly(pos)
|
||||
item:take_item()
|
||||
return item
|
||||
end
|
||||
|
Reference in New Issue
Block a user