Doesn't work ๐ Water still there.
But if i use Blocks.STONE.defaultBlockState() ... it works and change the source water by a Stone block immediately.
I have tried to look inside BucketItem to look how it works when bucket is used but i don't understand how water disappear and is replaced by air on targeting pos ๐