diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-02-26 16:31:19 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-02-26 16:31:19 -0700 |
commit | 6b39a08dabe1ce2a5e39a1980f56d17ba85d1d41 (patch) | |
tree | 993b6f423e9f9467d9598a30bbc92059cdc60913 | |
parent | 9a4713e2e3c8b3bec50e15ab3d0d1776f24e957c (diff) |
No need to test for protection here
-rw-r--r-- | node_storage.lua | 6 |
1 files changed, 0 insertions, 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() |