forked from MineClone5/MineClone5
Fix a crash
This commit is contained in:
parent
5ec7c5d246
commit
e155db8f9e
|
@ -509,7 +509,7 @@ function mcl_enchanting.show_enchanting_formspec(player)
|
||||||
.. "real_coordinates[true]"
|
.. "real_coordinates[true]"
|
||||||
.. "image[3.15,0.6;7.6,4.1;mcl_enchanting_button_background.png]"
|
.. "image[3.15,0.6;7.6,4.1;mcl_enchanting_button_background.png]"
|
||||||
local itemstack = inv:get_stack("enchanting_item", 1)
|
local itemstack = inv:get_stack("enchanting_item", 1)
|
||||||
local player_levels = mcl_experience.get_level(player)
|
local player_levels = mcl_experience.get_level(player) or 0
|
||||||
local y = 0.65
|
local y = 0.65
|
||||||
local any_enchantment = false
|
local any_enchantment = false
|
||||||
local table_slots = mcl_enchanting.get_table_slots(player, itemstack, num_bookshelves)
|
local table_slots = mcl_enchanting.get_table_slots(player, itemstack, num_bookshelves)
|
||||||
|
|
Loading…
Reference in New Issue