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,6 +152,7 @@ minetest.register_on_player_inventory_action(function(player, action, inventory,
surface_effect.mask(player) surface_effect.mask(player)
end) end)
if minetest.get_modpath("rangedweapons") then
minetest.clear_craft({ minetest.clear_craft({
output = "rangedweapons:hand_grenade" output = "rangedweapons:hand_grenade"
}) })
@ -164,3 +165,4 @@ minetest.clear_craft({
minetest.clear_craft({ minetest.clear_craft({
output = "rangedweapons:40mm" output = "rangedweapons:40mm"
}) })
end