1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 16:10:18 +01:00

move default mod to opt-depends and use screwdriver only if available

This commit is contained in:
BuckarooBanzay 2021-08-15 11:23:59 +02:00
parent 544997535e
commit b9a8209b0d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
name = scifi_nodes name = scifi_nodes
description = Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets. description = Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
depends = default
optional_depends = """ optional_depends = """
default,
xpanes, xpanes,
mesecons, mesecons,
moreblocks, moreblocks,

View File

@ -1080,7 +1080,7 @@ minetest.register_node("scifi_nodes:itemholder", {
} }
}, },
groups = {cracky=1}, groups = {cracky=1},
on_rotate = screwdriver.disallow, on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow,
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("owner",placer:get_player_name()) meta:set_string("owner",placer:get_player_name())