mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-27 23:45:52 +00:00
refactor: modernize micro occlusion helper
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user