Stop QE sliding door model clipping

This commit is contained in:
abel1502 2025-07-08 19:13:04 +03:00
parent 0cf9d88e36
commit 0e5e114b12
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -586,7 +586,7 @@ public abstract class DoorDecl {
@Override
@SideOnly(Side.CLIENT)
public void doOffsetTransform() {
GL11.glTranslated(0.4375, 0, 0.5);
GL11.glTranslated(0.40625, 0, 0.5);
};
@Override
@ -598,12 +598,12 @@ public abstract class DoorDecl {
public AxisAlignedBB getBlockBound(int x, int y, int z, boolean open) {
if(open) {
if(z == 0) {
return AxisAlignedBB.getBoundingBox(1 - 0.125, 0, 1 - 0.125, 1, 1, 1);
return AxisAlignedBB.getBoundingBox(1 - 0.125, 0, 1 - 0.1875, 1, 1, 1);
} else {
return AxisAlignedBB.getBoundingBox(0, 0, 1 - 0.125, 0.125, 1, 1);
return AxisAlignedBB.getBoundingBox(0, 0, 1 - 0.1875, 0.125, 1, 1);
}
} else {
return AxisAlignedBB.getBoundingBox(0, 0, 1 - 0.125, 1, 1, 1);
return AxisAlignedBB.getBoundingBox(0, 0, 1 - 0.1875, 1, 1, 1);
}
};