mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix painting offset if height is equal to 3 (Fixes #629)
This commit is contained in:
parent
ebd88c76aa
commit
7f5414cdef
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public class PaintingEntity extends Entity {
|
|||
Vector3f position = super.position;
|
||||
position = position.add(0.5, 0.5, 0.5);
|
||||
double widthOffset = paintingName.getWidth() > 1 ? 0.5 : 0;
|
||||
double heightOffset = paintingName.getHeight() > 1 ? 0.5 : 0;
|
||||
double heightOffset = paintingName.getHeight() > 1 && paintingName.getHeight() != 3 ? 0.5 : 0;
|
||||
|
||||
switch (direction) {
|
||||
case 0: return position.add(widthOffset, heightOffset, OFFSET);
|
||||
|
|
Loading…
Reference in a new issue