MT-Modder
2015-03-01 b8c902868115a0a607da35e208a422e430d46317
technic/tools/tree_tap.lua
@@ -22,13 +22,15 @@
      node.name = "moretrees:rubber_tree_trunk_empty"
      minetest.swap_node(pos, node)
      minetest.handle_node_drops(pointed_thing.above, {"technic:raw_latex"}, user)
      local item_wear = tonumber(itemstack:get_wear())
      item_wear = item_wear + 819
      if item_wear > 65535 then
         itemstack:clear()
         return itemstack
      if not technic.creative_mode then
         local item_wear = tonumber(itemstack:get_wear())
         item_wear = item_wear + 819
         if item_wear > 65535 then
            itemstack:clear()
            return itemstack
         end
         itemstack:set_wear(item_wear)
      end
      itemstack:set_wear(item_wear)
      return itemstack
   end,
})