1
0
Fork 0

Merge pull request 'Fix a couple of warnings in grindstone' (#2601) from fix_grindstone_warnings into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2601
Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
mobs-redo
cora 2022-08-28 19:07:17 +00:00
commit 7a6a84b2a2
1 changed files with 17 additions and 15 deletions

View File

@ -177,6 +177,18 @@ local function drop_grindstone_items(pos, meta)
end end
end end
local node_box = {
type = "fixed",
-- created with nodebox editor
fixed = {
{-0.25, -0.25, -0.375, 0.25, 0.5, 0.375},
{-0.375, -0.0625, -0.1875, -0.25, 0.3125, 0.1875},
{0.25, -0.0625, -0.1875, 0.375, 0.3125, 0.1875},
{0.25, -0.5, -0.125, 0.375, -0.0625, 0.125},
{-0.375, -0.5, -0.125, -0.25, -0.0625, 0.125},
}
}
minetest.register_node("mcl_grindstone:grindstone", { minetest.register_node("mcl_grindstone:grindstone", {
description = S("Grindstone"), description = S("Grindstone"),
_tt_help = S("Used to disenchant/fix tools"), _tt_help = S("Used to disenchant/fix tools"),
@ -196,17 +208,7 @@ minetest.register_node("mcl_grindstone:grindstone", {
}, },
drawtype = "nodebox", drawtype = "nodebox",
paramtype2 = "facedir", paramtype2 = "facedir",
node_box = { node_box = node_box,
type = "fixed",
-- created with nodebox editor
fixed = {
{-0.25, -0.25, -0.375, 0.25, 0.5, 0.375},
{-0.375, -0.0625, -0.1875, -0.25, 0.3125, 0.1875},
{0.25, -0.0625, -0.1875, 0.375, 0.3125, 0.1875},
{0.25, -0.5, -0.125, 0.375, -0.0625, 0.125},
{-0.375, -0.5, -0.125, -0.25, -0.0625, 0.125},
}
},
selection_box = node_box, selection_box = node_box,
collision_box = node_box, collision_box = node_box,
sounds = mcl_sounds.node_sound_stone_defaults(), sounds = mcl_sounds.node_sound_stone_defaults(),