added check for rangedweapons mod

This commit is contained in:
Vitaliy Olkhin 2024-12-09 00:29:47 +05:00
parent a8587b670a
commit 1518d3325c

View File

@ -152,15 +152,17 @@ minetest.register_on_player_inventory_action(function(player, action, inventory,
surface_effect.mask(player) surface_effect.mask(player)
end) end)
minetest.clear_craft({ if minetest.get_modpath("rangedweapons") then
output = "rangedweapons:hand_grenade" minetest.clear_craft({
}) output = "rangedweapons:hand_grenade"
minetest.clear_craft({ })
output = "rangedweapons:rpg" minetest.clear_craft({
}) output = "rangedweapons:rpg"
minetest.clear_craft({ })
output = "rangedweapons:rocket" minetest.clear_craft({
}) output = "rangedweapons:rocket"
minetest.clear_craft({ })
output = "rangedweapons:40mm" minetest.clear_craft({
}) output = "rangedweapons:40mm"
})
end