mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-07 22:39:01 -04:00
occlusion: skip calculating if less then 256 blocks set in chunk
When there are less than 256 blocks set, you will always be able to look from one side to another.
This commit is contained in:
parent
58a36aa454
commit
31fa6a809d
@ -46,7 +46,7 @@ class SectionOcclusion(
|
||||
fun recalculate(notify: Boolean) {
|
||||
if (!calculate) return
|
||||
|
||||
if (provider.isEmpty) {
|
||||
if (provider.count < ProtocolDefinition.SECTION_WIDTH_X * ProtocolDefinition.SECTION_WIDTH_Z) { // When there are less than 256 blocks set, you will always be able to look from one side to another
|
||||
clear(notify)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user