1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

add an 'equals' method to ItemStack and compatibility w/ lua '==' (#12771)

Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
fluxionary
2022-10-09 05:06:09 -07:00
committed by GitHub
parent b2a3f53b29
commit 440d966b93
5 changed files with 130 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ function unittests.run_one(idx, counters, out_callback, player, pos)
done(status, err)
out_callback(true)
end
return true
end
@@ -178,6 +178,7 @@ dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/itemdescription.lua")
dofile(modpath .. "/async_env.lua")
dofile(modpath .. "/entity.lua")
dofile(modpath .. "/itemstack_equals.lua")
dofile(modpath .. "/content_ids.lua")
dofile(modpath .. "/metadata.lua")