Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-07-03 20:08:08 +02:00
Add fix (#4792)
Dieser Commit ist enthalten in:
Ursprung
55e90b6f57
Commit
a8bd93a075
|
@ -86,7 +86,11 @@ public class PaintingEntity extends Entity {
|
||||||
|
|
||||||
private Vector3f fixOffset(PaintingType paintingName) {
|
private Vector3f fixOffset(PaintingType paintingName) {
|
||||||
Vector3f position = super.position;
|
Vector3f position = super.position;
|
||||||
position = position.add(0.5, 0.5, 0.5);
|
// ViaVersion already adds the offset for us on older versions,
|
||||||
|
// so no need to do it then otherwise it will be spaced
|
||||||
|
if (session.isEmulatePost1_18Logic()) {
|
||||||
|
position = position.add(0.5, 0.5, 0.5);
|
||||||
|
}
|
||||||
double widthOffset = paintingName.getWidth() > 1 && paintingName.getWidth() != 3 ? 0.5 : 0;
|
double widthOffset = paintingName.getWidth() > 1 && paintingName.getWidth() != 3 ? 0.5 : 0;
|
||||||
double heightOffset = paintingName.getHeight() > 1 && paintingName.getHeight() != 3 ? 0.5 : 0;
|
double heightOffset = paintingName.getHeight() > 1 && paintingName.getHeight() != 3 ? 0.5 : 0;
|
||||||
|
|
||||||
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren