mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
[screwdriver] Fix handler call
- Also remove some whitespaces from stairs for convenience
This commit is contained in:
parent
c6d49a03b5
commit
a6572fafc5
@ -100,7 +100,7 @@ minetest.register_tool("screwdriver:screwdriver", {
|
||||
return itemstack
|
||||
end,
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
screwdriver_handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS)
|
||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
@ -110,11 +110,11 @@ minetest.register_tool("screwdriver:screwdriver_perfect", {
|
||||
description = "Perfect Screwdriver (left-click rotates face, right-click rotates axis)",
|
||||
inventory_image = "screwdriver_perfect.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
screwdriver_handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 10000)
|
||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 10000)
|
||||
return itemstack
|
||||
end,
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
screwdriver_handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS, 10000)
|
||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS, 10000)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
@ -172,7 +172,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
||||
-- Upside down slabs
|
||||
if p0.y - 1 == p1.y then
|
||||
-- Turn into full block if pointing at a existing slab
|
||||
@ -344,7 +344,7 @@ stairs.register_stair_and_slab("sandstone", "default:sandstone",
|
||||
"Sandstone Stair",
|
||||
"Sandstone Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
|
||||
stairs.register_stair_and_slab("sandstonebrick", "default:sandstonebrick",
|
||||
{crumbly = 2, cracky = 2},
|
||||
{"default_sandstone_brick.png"},
|
||||
|
Loading…
Reference in New Issue
Block a user