Replace minetest.env: with minetest.

This commit is contained in:
PilzAdam
2013-05-25 00:40:03 +02:00
parent dfad095884
commit 31a74ede18
13 changed files with 169 additions and 169 deletions

View File

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