* Added the possibility to wear the armor on rightclick backported from https://github.com/minetest-mods/3d_armor/pull/16 * fix not being able to place armor on anvil due new right click * fix armor equip/unequip initial implmentation that backports https://github.com/minetest-mods/3d_armor/pull/17 solving a number of problems with the new right-click armor equipping * fix callbacks not being called by armor.equip() and `armor.unequip()` * fix player physics player_physics_locked attribute * add feather falling * prevents a crash when a pipeworks deployer tries to equip armor * Fix typo in wieldview caused by skindb crash when player joins * update and added nether lava and lava crust to fire protection list. * fix bug Armor still damageable in (pvp) protected area * Fix detached inventory vulnerability complete checks * Fix count when armor is destroyed, option to prevent physics override * update version to 0.4.15 that works with 0.4.X and 5.X engines
24 lines
624 B
Lua
24 lines
624 B
Lua
-- support for i18n
|
|
local S = armor_i18n.gettext
|
|
|
|
if not minetest.global_exists("sfinv") then
|
|
minetest.log("warning", "[3d_armor_sfinv]: Mod loaded but unused.")
|
|
return
|
|
end
|
|
|
|
sfinv.register_page("3d_armor:armor", {
|
|
title = S("Armor"),
|
|
get = function(self, player, context)
|
|
local name = player:get_player_name()
|
|
local formspec = armor:get_armor_formspec(name, true)
|
|
return sfinv.make_formspec(player, context, formspec, false)
|
|
end
|
|
})
|
|
armor:register_on_update(function(player)
|
|
if sfinv.enabled then
|
|
sfinv.set_player_inventory_formspec(player)
|
|
end
|
|
end)
|
|
|
|
minetest.log("[3d_armor_sfinv]: Mod loaded successfully.")
|