mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 22:04:25 -04:00
rebased code
This commit is contained in:
parent
b633396747
commit
610fea7d33
1 changed files with 7 additions and 0 deletions
|
@ -87,6 +87,13 @@ minetest.register_tool("fire:flint_and_steel", {
|
|||
else
|
||||
minetest.chat_send_player(player_name, "This area is protected")
|
||||
end
|
||||
elseif node_under == "tnt:gunpowder" or node_under == "tnt:tnt" then
|
||||
if not minetest.is_protected(pt.under, player_name) then
|
||||
minetest.set_node(pt.under, {name=node_under.. "_burning"})
|
||||
minetest.get_node_timer(pt.under):start(1)
|
||||
else
|
||||
minetest.chat_send_player(player_name, "This area is protected")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue