Compare commits
5 Commits
a6bea5aabc
...
7d3e37ec30
Author | SHA1 | Date |
---|---|---|
Vanessa Dannenberg | 7d3e37ec30 | |
cheapie | bbc7bc0e48 | |
Vanessa Dannenberg | 7715f09af0 | |
Vanessa Dannenberg | 2b2e760c0d | |
Auke Kok | 04e74d5ec8 |
14
init.lua
14
init.lua
|
@ -21,11 +21,11 @@ function steel_node_is_owned(pos, placer)
|
|||
end
|
||||
end
|
||||
|
||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||
if not isprotect(5, pos, placer) then
|
||||
ownername = "someone"
|
||||
end
|
||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||
if not protector.can_dig(5, pos, placer) then
|
||||
ownername = "someone"
|
||||
end
|
||||
|
@ -102,7 +102,10 @@ minetest.register_node("steel:plate_rusted", {
|
|||
|
||||
local base_tex = "strut.png"
|
||||
|
||||
if minetest.registered_nodes["streets:steel_support"] then
|
||||
local streetsmod = minetest.get_modpath("streets") or minetest.get_modpath("steelsupport")
|
||||
-- cheapie's fork breaks it into several individual mods, with different names for the same content.
|
||||
|
||||
if streetsmod then
|
||||
minetest.register_alias("steel:strut","streets:steel_support")
|
||||
base_tex = "streets_support.png"
|
||||
else
|
||||
|
@ -272,7 +275,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
-- only register this craft if streets is not loaded
|
||||
if not minetest.registered_nodes["streets:steel_support"] then
|
||||
|
||||
if not streetsmod then
|
||||
minetest.register_craft({
|
||||
output = 'steel:strut 5',
|
||||
recipe = {
|
||||
|
@ -369,10 +373,12 @@ if minetest.get_modpath("unifieddyes") then
|
|||
groups = {cracky=1, level=2, ud_param2_colorable=1, not_in_creative_inventory=1},
|
||||
on_construct = unifieddyes.on_construct,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
on_dig = unifieddyes.on_dig,
|
||||
})
|
||||
|
||||
minetest.override_item("default:steelblock", {
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
airbrush_replacement_node = "steel:steel_block",
|
||||
groups = {cracky=1, level=2, ud_param2_colorable=1},
|
||||
})
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue