From f6b499230f580573f6426950cd2bbc6bf8e6e128 Mon Sep 17 00:00:00 2001 From: ThePython <87204246+ThePython10110@users.noreply.github.com> Date: Thu, 25 Jan 2024 07:40:44 -0800 Subject: [PATCH] v6.8 --- exchangeclone/axes.lua | 2 +- exchangeclone/hammers.lua | 2 +- exchangeclone/red_matter_multitools.lua | 2 +- exchangeclone/shears.lua | 2 +- exchangeclone/shovels.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exchangeclone/axes.lua b/exchangeclone/axes.lua index 1090a61..209bc1c 100644 --- a/exchangeclone/axes.lua +++ b/exchangeclone/axes.lua @@ -25,7 +25,7 @@ exchangeclone.axe_action = { minetest.swap_node(pos, {name=node_def._mcl_stripped_variant, param2=node.param2}) end else - local drops = minetest.get_node_drops(node.name, data.itemstack) + local drops = minetest.get_node_drops(node.name, data.itemstack:get_name()) exchangeclone.drop_items_on_player(pos, drops, player) table.insert(data.remove_positions, pos) end diff --git a/exchangeclone/hammers.lua b/exchangeclone/hammers.lua index ed2fb41..60574f1 100644 --- a/exchangeclone/hammers.lua +++ b/exchangeclone/hammers.lua @@ -20,7 +20,7 @@ exchangeclone.hammer_action = { if minetest.is_protected(pos, player:get_player_name()) then minetest.record_protection_violation(pos, player:get_player_name()) else - local drops = minetest.get_node_drops(node.name, data.itemstack) + local drops = minetest.get_node_drops(node.name, data.itemstack:get_name()) exchangeclone.drop_items_on_player(pos, drops, player) table.insert(data.remove_positions, pos) end diff --git a/exchangeclone/red_matter_multitools.lua b/exchangeclone/red_matter_multitools.lua index ef2d81c..400d58e 100644 --- a/exchangeclone/red_matter_multitools.lua +++ b/exchangeclone/red_matter_multitools.lua @@ -140,7 +140,7 @@ exchangeclone.morningstar_action = { if minetest.is_protected(pos, player:get_player_name()) then minetest.record_protection_violation(pos, player:get_player_name()) else - local drops = minetest.get_node_drops(node.name, data.itemstack) + local drops = minetest.get_node_drops(node.name, data.itemstack:get_name()) exchangeclone.drop_items_on_player(pos, drops, player) table.insert(data.remove_positions, pos) end diff --git a/exchangeclone/shears.lua b/exchangeclone/shears.lua index 1545473..116c221 100644 --- a/exchangeclone/shears.lua +++ b/exchangeclone/shears.lua @@ -18,7 +18,7 @@ exchangeclone.shear_action = { if minetest.is_protected(pos, player:get_player_name()) then minetest.record_protection_violation(pos, player:get_player_name()) else - local drops = minetest.get_node_drops(node.name, data.itemstack) + local drops = minetest.get_node_drops(node.name, data.itemstack:get_name()) exchangeclone.drop_items_on_player(pos, drops, player) -- Annoying manual override if node.name:sub(1,18) == "mcl_ocean:seagrass" then diff --git a/exchangeclone/shovels.lua b/exchangeclone/shovels.lua index 02c429a..6a9aaa8 100644 --- a/exchangeclone/shovels.lua +++ b/exchangeclone/shovels.lua @@ -27,7 +27,7 @@ exchangeclone.shovel_action = { end end else - local drops = minetest.get_node_drops(node.name, data.itemstack) + local drops = minetest.get_node_drops(node.name, data.itemstack:get_name()) exchangeclone.drop_items_on_player(pos, drops, player) table.insert(data.remove_positions, pos) end