mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-28 04:40:22 +02:00
Add furnace protection, eat some lines of codes
This adds protection for furnaces (when the area is protected, so it the furnace). Also made the codes a bit shorter..
This commit is contained in:
@ -120,8 +120,6 @@ minetest.register_on_dieplayer(function(player)
|
||||
local player_name = player:get_player_name()
|
||||
local player_inv = player:get_inventory()
|
||||
|
||||
minetest.chat_send_player(player_name, "You died at "..minetest.pos_to_string(pos))
|
||||
|
||||
local nn = minetest.get_node(pos).name
|
||||
if minetest.registered_nodes[nn].can_dig and
|
||||
not minetest.registered_nodes[nn].can_dig(pos, player) then
|
||||
|
Reference in New Issue
Block a user