Paintings or entities disappearing when placing an item frame is patched!

This commit is contained in:
3makJoud committed 2026-12-05 02:52:10 +00:00
1 parent 6828811ca3
commit 3592090b34
1 file changed
+9 -2
+9 -2
View File
@@ -77,8 +77,15 @@ bool FrustumData::cubeInFrustum(double x1, double y1, double z1, double x2, doub
if (m_Frustum[i][A] * (x2) + m_Frustum[i][B] * (y1) + m_Frustum[i][C] * (z2) + m_Frustum[i][D] > 0) continue;
if (m_Frustum[i][A] * (x1) + m_Frustum[i][B] * (y2) + m_Frustum[i][C] * (z2) + m_Frustum[i][D] > 0) continue;
if (m_Frustum[i][A] * (x2) + m_Frustum[i][B] * (y2) + m_Frustum[i][C] * (z2) + m_Frustum[i][D] > 0) continue;
return false;
// @CDevJoud: this is a very simple temp fix.
// for now we just return true. the real problem is on how frustum calculations are made.
// in the newer rebase i will make sure to solve the real issue of the frustum culler calculations with a better
// approach. I find solving frustum calculation in this codebase is a nightmare! :(
// this fix may or may not result in future glitches so if u encounter any problem just let me know!
// old value:
// return false;
return true;
}
return true;