mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 15:20:37 +02:00
Compare commits
1 Commits
18df2813a0
...
pr_647_tec
Author | SHA1 | Date | |
---|---|---|---|
2454382e90 |
@ -92,7 +92,7 @@ local dirtab = {
|
||||
|
||||
local tube = {
|
||||
insert_object = function(pos, node, stack, direction)
|
||||
--print(minetest.pos_to_string(direction), dirtab[direction.x+2+(direction.z+2)*2], node.param2)
|
||||
print(minetest.pos_to_string(direction), dirtab[direction.x+2+(direction.z+2)*2], node.param2)
|
||||
if direction.y == 1
|
||||
or (direction.y == 0 and dirtab[direction.x+2+(direction.z+2)*2] == node.param2) then
|
||||
return stack
|
||||
@ -106,7 +106,7 @@ local tube = {
|
||||
end
|
||||
end,
|
||||
can_insert = function(pos, node, stack, direction)
|
||||
--print(minetest.pos_to_string(direction), dirtab[direction.x+2+(direction.z+2)*2], node.param2)
|
||||
print(minetest.pos_to_string(direction), dirtab[direction.x+2+(direction.z+2)*2], node.param2)
|
||||
if direction.y == 1
|
||||
or (direction.y == 0 and dirtab[direction.x+2+(direction.z+2)*2] == node.param2) then
|
||||
return false
|
||||
|
@ -10,7 +10,6 @@ local function register_material(nodename, tiles_override, descr_override)
|
||||
end
|
||||
|
||||
local groups = {
|
||||
cracky = ndef.groups.cracky,
|
||||
crumbly = ndef.groups.crumbly,
|
||||
choppy = ndef.groups.choppy,
|
||||
flammable = ndef.groups.flammable,
|
||||
@ -20,12 +19,6 @@ local function register_material(nodename, tiles_override, descr_override)
|
||||
oddly_breakable_by_hand = ndef.groups.oddly_breakable_by_hand,
|
||||
not_in_creative_inventory = 1,
|
||||
}
|
||||
local count = 0
|
||||
for _ in pairs(groups) do
|
||||
count = count + 1
|
||||
end
|
||||
assert(count >= 2, "Too few groups. node name=" .. nodename)
|
||||
|
||||
local tiles = tiles_override or { ndef.tiles[#ndef.tiles] }
|
||||
assert(tiles and #tiles == 1, "Unknown tile format in node name=" .. nodename)
|
||||
|
||||
|
Reference in New Issue
Block a user