1
0
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:
SmallJoker
2014-04-15 17:23:11 +02:00
committed by BlockMen
parent d47201f813
commit a32751800c
2 changed files with 45 additions and 96 deletions

View File

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