mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-03 16:40:25 +02:00
Removing all the olds minetest.env calls
- All the minetest.env calls removed It took me about 2 hours, but I did it, and it works!
This commit is contained in:
@ -49,7 +49,7 @@ minetest.register_craftitem("mobs:bee", {
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if pointed_thing.above then
|
||||
minetest.env:add_entity(pointed_thing.above, "mobs:bee")
|
||||
minetest.add_entity(pointed_thing.above, "mobs:bee")
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
@ -88,7 +88,7 @@ minetest.register_node("mobs:beehive", {
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
if placer:is_player() then
|
||||
minetest.set_node(pos, {name="mobs:beehive", param2=1})
|
||||
minetest.env:add_entity(pos, "mobs:bee")
|
||||
minetest.add_entity(pos, "mobs:bee")
|
||||
end
|
||||
end,
|
||||
|
||||
|
Reference in New Issue
Block a user