Skip to content

Commit 6868bfd

Browse files
Fix emptying water buckets in waterlogged blocks
Fixes an inconsistency with vanilla. This allows players to empty water buckets into already waterlogged blocks, effectively deleting the water, just like for vanilla waterloggable blocks.
1 parent d31f37a commit 6868bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nova/src/main/kotlin/xyz/xenondevs/nova/world/block/behavior/Waterloggable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ object Waterloggable : BlockBehavior {
3434
val itemStack = player.inventory.getItem(hand)
3535
val isWaterlogged = state.getOrThrow(WATERLOGGED)
3636

37-
if (!isWaterlogged && itemStack.type == Material.WATER_BUCKET) {
37+
if (itemStack.type == Material.WATER_BUCKET) {
3838
BlockUtils.updateBlockState(pos, state.with(WATERLOGGED, true))
3939
if (player.gameMode != GameMode.CREATIVE) {
4040
Bucketable.emptyBucketInHand(player, hand)

0 commit comments

Comments
 (0)