BlockStateDeserializerHelper: fixed mistake in decodeLiquid()

This commit is contained in:
Dylan K. Taylor 2022-01-31 18:15:02 +00:00
parent 03e3ecdbd3
commit c4228edf3c
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -115,7 +115,7 @@ final class BlockStateDeserializerHelper{
$fluidHeightState = $in->readBoundedInt(BlockStateNames::LIQUID_DEPTH, 0, 15); $fluidHeightState = $in->readBoundedInt(BlockStateNames::LIQUID_DEPTH, 0, 15);
return $block return $block
->setDecay($fluidHeightState & 0x7) ->setDecay($fluidHeightState & 0x7)
->setFalling(($fluidHeightState & 0x1) !== 0) ->setFalling(($fluidHeightState & 0x8) !== 0)
->setStill($still); ->setStill($still);
} }