File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ function Physics (mcData, world) {
592
592
function getRenderedDepth ( block ) {
593
593
if ( ! block ) return - 1
594
594
if ( waterLike . has ( block . type ) ) return 0
595
- if ( block . getProperties ( ) . waterlogged ) return 0
595
+ if ( block . isWaterlogged ) return 0
596
596
if ( ! waterIds . includes ( block . type ) ) return - 1
597
597
const meta = block . metadata
598
598
return meta >= 8 ? 0 : meta
@@ -640,7 +640,7 @@ function Physics (mcData, world) {
640
640
for ( cursor . z = Math . floor ( bb . minZ ) ; cursor . z <= Math . floor ( bb . maxZ ) ; cursor . z ++ ) {
641
641
for ( cursor . x = Math . floor ( bb . minX ) ; cursor . x <= Math . floor ( bb . maxX ) ; cursor . x ++ ) {
642
642
const block = world . getBlock ( cursor )
643
- if ( block && ( waterIds . includes ( block . type ) || waterLike . has ( block . type ) || block . getProperties ( ) . waterlogged ) ) {
643
+ if ( block && ( waterIds . includes ( block . type ) || waterLike . has ( block . type ) || block . isWaterlogged ) ) {
644
644
const waterLevel = cursor . y + 1 - getLiquidHeightPcent ( block )
645
645
if ( Math . ceil ( bb . maxY ) >= waterLevel ) waterBlocks . push ( block )
646
646
}
You can’t perform that action at this time.
0 commit comments