mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-25 16:43:50 +01:00
tube migration bugfix
This commit is contained in:
parent
958495acee
commit
539401e2fb
@ -158,7 +158,8 @@ minetest.register_node("tubelib:forceload", {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
del_pos(pos, digger)
|
local player = minetest.get_player_by_name(oldmetadata.fields.owner)
|
||||||
|
del_pos(pos, player)
|
||||||
minetest.forceload_free_block(pos, true)
|
minetest.forceload_free_block(pos, true)
|
||||||
tubelib.unmark_region(oldmetadata.fields.owner)
|
tubelib.unmark_region(oldmetadata.fields.owner)
|
||||||
end,
|
end,
|
||||||
|
@ -9,9 +9,14 @@ local TubesTranslation = {
|
|||||||
["tubelib:tube1"] = {[0]=
|
["tubelib:tube1"] = {[0]=
|
||||||
{12, "S"},
|
{12, "S"},
|
||||||
{21, "S"},
|
{21, "S"},
|
||||||
|
{12, "S"},
|
||||||
|
{21, "S"},
|
||||||
},
|
},
|
||||||
["tubelib:tube2"] = {[0]=
|
["tubelib:tube2"] = {[0]=
|
||||||
{ 4, "S"},
|
{ 4, "S"},
|
||||||
|
{ 4, "S"},
|
||||||
|
{ 4, "S"},
|
||||||
|
{ 4, "S"},
|
||||||
},
|
},
|
||||||
["tubelib:tube3"] = {[0]=
|
["tubelib:tube3"] = {[0]=
|
||||||
{ 5, "A"},
|
{ 5, "A"},
|
||||||
@ -75,12 +80,12 @@ minetest.register_lbm({
|
|||||||
|
|
||||||
-- legacy tube, to be converted after placed
|
-- legacy tube, to be converted after placed
|
||||||
minetest.register_node("tubelib:tube1", {
|
minetest.register_node("tubelib:tube1", {
|
||||||
description = "Tubelib Tube",
|
description = "Tubelib Tube (old)",
|
||||||
tiles = { -- Top, base, right, left, front, back
|
tiles = { -- Top, base, right, left, front, back
|
||||||
"tubelib_tube.png^[transformR90",
|
"tubelib_tube.png^tubelib_defect.png^[transformR90",
|
||||||
"tubelib_tube.png^[transformR90",
|
"tubelib_tube.png^tubelib_defect.png^[transformR90",
|
||||||
"tubelib_tube.png",
|
"tubelib_tube.png^tubelib_defect.png",
|
||||||
"tubelib_tube.png",
|
"tubelib_tube.png^tubelib_defect.png",
|
||||||
"tubelib_hole.png",
|
"tubelib_hole.png",
|
||||||
"tubelib_hole.png",
|
"tubelib_hole.png",
|
||||||
},
|
},
|
||||||
@ -120,3 +125,9 @@ minetest.register_node("tubelib:tube1", {
|
|||||||
groups = {choppy=2, cracky=3, stone=1, not_in_creative_inventory=1},
|
groups = {choppy=2, cracky=3, stone=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "tubelib:tubeS",
|
||||||
|
recipe = {"tubelib:tube1"},
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user