Merge pull request #2268 from abel1502/abel-qe-sliding-door

Stop QE sliding door model clipping
This commit is contained in:
HbmMods 2025-07-09 08:24:34 +02:00 committed by GitHub
commit 8a3c8b5e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}
};