mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
More changes on butterflies
This commit is contained in:
parent
952f441c23
commit
41b5558aeb
1 changed files with 4 additions and 12 deletions
|
@ -47,13 +47,9 @@ for i in ipairs (butter_list) do
|
||||||
local player_name = placer and placer:get_player_name() or ""
|
local player_name = placer and placer:get_player_name() or ""
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
|
|
||||||
if minetest.is_protected(pos, player_name) or minetest.is_protected(pointed_thing.under, player_name) then
|
local _, success = minetest.item_place(itemstack, placer, pointed_thing)
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local _, sucess = minetest.item_place(itemstack, placer, pointed_thing)
|
if success then
|
||||||
|
|
||||||
if sucess then
|
|
||||||
minetest.get_node_timer(pos):start(1)
|
minetest.get_node_timer(pos):start(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -83,13 +79,9 @@ for i in ipairs (butter_list) do
|
||||||
local player_name = placer and placer:get_player_name() or ""
|
local player_name = placer and placer:get_player_name() or ""
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
|
|
||||||
if minetest.is_protected(pos, player_name) or minetest.is_protected(pointed_thing.under, player_name) then
|
local _, success = minetest.item_place(itemstack, placer, pointed_thing)
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local _, sucess = minetest.item_place(itemstack, placer, pointed_thing)
|
if success then
|
||||||
|
|
||||||
if sucess then
|
|
||||||
minetest.get_node_timer(pos):start(1)
|
minetest.get_node_timer(pos):start(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue