mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-21 14:26:22 +01:00
Add fix (#4792)
This commit is contained in:
parent
55e90b6f57
commit
a8bd93a075
1 changed files with 5 additions and 1 deletions
|
@ -86,7 +86,11 @@ public class PaintingEntity extends Entity {
|
|||
|
||||
private Vector3f fixOffset(PaintingType paintingName) {
|
||||
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 heightOffset = paintingName.getHeight() > 1 && paintingName.getHeight() != 3 ? 0.5 : 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue