You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bukkit/version/v1_18/src/main/kotlin/io/github/rothes/esu/bukkit/module/networkthrottle/chunkdatathrottle/v1_18/ChunkDataThrottleHandlerImpl.kt
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -463,21 +463,22 @@ class ChunkDataThrottleHandlerImpl: ChunkDataThrottleHandler,
463
463
val x = id and0xf
464
464
val z = id shr 4and0xf
465
465
funcheckBlock(id:Int, b:Byte) {
466
-
if (invisible[id] andBV_UPPER_OCCLUDING==BV_UPPER_OCCLUDING) {
466
+
if (invisible[id] ==BV_LAVA_COVERED) {
467
467
bvArr[id] = bvArr[id] or b
468
-
pending.add(id)
469
468
}
470
469
}
471
470
funcheckEdge(id:Int, check:Byte, set:Byte) {
472
-
if (id in (0..< invisible.size) && bvArr[id] and check !=0.toByte()) {
473
-
bvArr[id] = bvArr[id] and set
471
+
// it and upper block should both be lava-covered
472
+
if (bvArr[id] and check !=0.toByte() && bvArr[id +0x100] and check !=0.toByte()) {
0 commit comments