Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-05 09:20:07 +02:00
Fix painting offset if height is equal to 3 (Fixes #629)
Dieser Commit ist enthalten in:
Ursprung
ebd88c76aa
Commit
7f5414cdef
@ -67,7 +67,7 @@ public class PaintingEntity extends Entity {
|
|||||||
Vector3f position = super.position;
|
Vector3f position = super.position;
|
||||||
position = position.add(0.5, 0.5, 0.5);
|
position = position.add(0.5, 0.5, 0.5);
|
||||||
double widthOffset = paintingName.getWidth() > 1 ? 0.5 : 0;
|
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) {
|
switch (direction) {
|
||||||
case 0: return position.add(widthOffset, heightOffset, OFFSET);
|
case 0: return position.add(widthOffset, heightOffset, OFFSET);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren