Merge pull request 'fix all chests size with selectionbox/collisionbox' (#2944) from fix_chests into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2944
Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
cora 2022-11-13 22:20:30 +00:00
commit 55375a7476
3 changed files with 5 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ minetest.register_node("mcl_chests:ender_chest_small", {
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.4375, -0.5, -0.4375, 0.5, 0.375, 0.4375}, fixed = {-0.4375, -0.5, -0.4375, 0.4375, 0.375, 0.4375},
}, },
_chest_entity_textures = {"mcl_chests_ender.png"}, _chest_entity_textures = {"mcl_chests_ender.png"},
_chest_entity_sound = "mcl_chests_enderchest", _chest_entity_sound = "mcl_chests_enderchest",
@ -1221,6 +1221,10 @@ for color, desc in pairs(boxtypes) do
_doc_items_longdesc = longdesc, _doc_items_longdesc = longdesc,
_doc_items_usagehelp = usagehelp, _doc_items_usagehelp = usagehelp,
drawtype = "nodebox", drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {-0.48, -0.5, -0.48, 0.48, 0.489, 0.48},
},
tiles = {"blank.png^[resize:16x16"}, tiles = {"blank.png^[resize:16x16"},
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
_chest_entity_textures = {mob_texture}, _chest_entity_textures = {mob_texture},