added check for rangedweapons mod
This commit is contained in:
parent
a8587b670a
commit
1518d3325c
26
init.lua
26
init.lua
@ -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
|
Loading…
Reference in New Issue
Block a user