mirror of
https://bitbucket.org/minetest_gamers/x_enchanting.git
synced 2025-04-21 17:50:21 +02:00
Add grindstone
This commit is contained in:
parent
737e2f3cba
commit
84df66325e
@ -89,7 +89,6 @@ minetest.register_node('x_enchanting:grindstone', {
|
||||
local p_name = clicker:get_player_name()
|
||||
local inv = meta:get_inventory()
|
||||
local item_stack = inv:get_stack('item', 1)
|
||||
local item_stack_meta = item_stack:get_meta()
|
||||
local has_all_cursed_ench = XEnchanting:has_all_cursed_ench(item_stack)
|
||||
|
||||
if minetest.is_protected(pos, p_name) then
|
||||
@ -281,7 +280,6 @@ minetest.register_node('x_enchanting:grindstone', {
|
||||
local result_stack = inv:get_stack('result', 1)
|
||||
local item_stack = inv:get_stack('item', 1)
|
||||
local item_stack_meta = item_stack:get_meta()
|
||||
local is_enchanted = item_stack_meta:get_int('is_enchanted')
|
||||
local has_all_cursed_ench = XEnchanting:has_all_cursed_ench(item_stack)
|
||||
local stack_enchantment_data = minetest.deserialize(item_stack_meta:get_string('x_enchanting')) or {}
|
||||
local result_payment_stack = ItemStack({ name = 'default:mese_crystal_fragment' })
|
||||
|
Loading…
x
Reference in New Issue
Block a user