From 37b10d1cee078b83be98ed9a4d649db6e09757c4 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 24 Feb 2017 22:45:23 +0000 Subject: [PATCH] Remove redundant code --- 3d_armor/armor.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 018810c..6c0f80c 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -511,18 +511,17 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then end if ARMOR_DESTROY == false then minetest.after(ARMOR_BONES_DELAY, function() - local node, meta = nil, nil + local meta = nil local maxp = vector.add(pos, 8) local minp = vector.subtract(pos, 8) local bones = minetest.find_nodes_in_area(minp, maxp, {"bones:bones"}) for _, p in pairs(bones) do meta = minetest.get_meta(p) if meta:get_string("owner") == name then - node = minetest.get_node(p) break end end - if node and meta then + if meta then local inv = meta:get_inventory() for _,stack in ipairs(drop) do if inv:room_for_item("main", stack) then