mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Fix black chests, https://git.minetest.land/Wuzzy/MineClone2/issues/995
This commit is contained in:
parent
b7c3096364
commit
94840ec2ef
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ minetest.register_entity("mcl_chests:chest", {
|
||||||
|
|
||||||
local function get_entity_pos(pos, dir, double)
|
local function get_entity_pos(pos, dir, double)
|
||||||
pos = vector.new(pos)
|
pos = vector.new(pos)
|
||||||
pos.y = pos.y - 0.5
|
pos.y = pos.y - 0.49
|
||||||
if double then
|
if double then
|
||||||
local add, mul, vec, cross = vector.add, vector.multiply, vector.new, vector.cross
|
local add, mul, vec, cross = vector.add, vector.multiply, vector.new, vector.cross
|
||||||
pos = add(pos, mul(cross(dir, vec(0, 1, 0)), -0.5))
|
pos = add(pos, mul(cross(dir, vec(0, 1, 0)), -0.5))
|
||||||
|
|
Loading…
Reference in a new issue