Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,22 @@ local nodes = {
for name, def in pairs(nodes) do
def.is_ground_content = def.is_ground_content == true
def.tiles = def.tiles or {"moreblocks_" ..name.. ".png"}

local burntime = def.furnace_burntime
def.furnace_burntime = nil -- deprecated node def field

minetest.register_node("moreblocks:" ..name, def)
minetest.register_alias(name, "moreblocks:" ..name)

-- Optional: register the node as fuel
if burntime then
core.register_craft({
type = "fuel",
recipe = "moreblocks:" .. name,
burntime = burntime,
})
end

local tiles = def.tiles

-- Use the primary tile for all sides of cut glasslike nodes.
Expand Down
5 changes: 4 additions & 1 deletion stairsplus/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ stairsplus.rotate_node_aux = function(itemstack, placer, pointed_thing)
local wallmounted = minetest.dir_to_wallmounted(vector.subtract(pointed_thing.above, under))

if same_cat and not aux then
p2 = under_node.param2
-- param2 can be in the range [0, 31]. We assume that the stair nodes use the
-- drawtype "facedir". Wrap the value like done in Luanti `src/mapnode.cpp`.
p2 = under_node.param2 % 24

-- flip if placing above or below an upright or upside-down node
-- TODO should we also flip when placing next to a side-mounted node?
if wallmounted < 2 then
Expand Down
Loading