refactor: modernize micro occlusion helper

This commit is contained in:
Algent committed 2026-09-09 14:31:25 +02:00
1 parent ac2dde545e
commit aa1d26ca98
3 files changed
+22 -11

No files matched your search

@@ -9,10 +9,9 @@ final class TMicroOcclusionLogic {
private TMicroOcclusionLogic() {}
static boolean occlusionTest(TMicroOcclusion part, TMultiPart next) {
if (!(next instanceof TMicroOcclusion)) {
if (!(next instanceof TMicroOcclusion other)) {
return true;
}
TMicroOcclusion other = (TMicroOcclusion) next;
int shape1 = MicroOcclusion$.MODULE$.shapePriority(part.getSlot());
int shape2 = MicroOcclusion$.MODULE$.shapePriority(other.getSlot());
if (other.getSize() + part.getSize() > 8) {