From bae1fa072c9f5b01460e961e9e91fc530fa14bd6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 12 May 2018 22:53:21 +0200 Subject: [PATCH] Remove dead code --- mods/CORE/mcl_util/init.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index fbe4989b..54d5e363 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -155,12 +155,6 @@ local is_not_shulker_box = function(itemstack) return g == 0 or g == nil end --- Returns true itemstack is music disc -local is_music_disc = function(itemstack) - local g = minetest.get_item_group(itemstack:get_name(), "music_record") - return g ~= 0 and g ~= nil -end - -- Moves a single item from one inventory to another. --- source_inventory: Inventory to take the item from --- source_list: List name of the source inventory from which to take the item @@ -267,10 +261,6 @@ function mcl_util.move_item_container(source_pos, destination_pos, source_list, if dctype == 3 then cond = is_not_shulker_box end - -- Music disc only - if dctype == 7 then - cond = is_music_disc - end source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond) if not source_stack_id then -- Try again if source is a double container -- 2.11.4.GIT