From 6b39a08dabe1ce2a5e39a1980f56d17ba85d1d41 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 26 Feb 2017 16:31:19 -0700 Subject: [PATCH] No need to test for protection here --- node_storage.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/node_storage.lua b/node_storage.lua index a85d35f..5284490 100644 --- a/node_storage.lua +++ b/node_storage.lua @@ -114,9 +114,6 @@ minetest.register_node("digtron:fuelstore", { -- Only allow fuel items to be placed in fuel allow_metadata_inventory_put = function(pos, listname, index, stack, player) - if minetest.is_protected(pos, player:get_player_name()) then - return 0 - end if listname == "fuel" then if minetest.get_craft_result({method="fuel", width=1, items={stack}}).time ~= 0 then return stack:get_count() @@ -204,9 +201,6 @@ minetest.register_node("digtron:combined_storage", { -- Only allow fuel items to be placed in fuel allow_metadata_inventory_put = function(pos, listname, index, stack, player) - if minetest.is_protected(pos, player:get_player_name()) then - return 0 - end if listname == "fuel" then if minetest.get_craft_result({method="fuel", width=1, items={stack}}).time ~= 0 then return stack:get_count()