From 69118fce6869e9b0aa27f70c077d591543add755 Mon Sep 17 00:00:00 2001 From: DaPigGuy Date: Sun, 29 Dec 2024 05:31:33 -0800 Subject: [PATCH] item/bucket.go: Place liquid on clicked face of replaceable blocks --- server/item/bucket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/item/bucket.go b/server/item/bucket.go index 31c830904..3b90a185b 100644 --- a/server/item/bucket.go +++ b/server/item/bucket.go @@ -107,7 +107,7 @@ func (b Bucket) UseOnBlock(pos cube.Pos, face cube.Face, _ mgl64.Vec3, tx *world return b.fillFrom(pos, tx, ctx) } liq := b.Content.liquid.WithDepth(8, false) - if bl := tx.Block(pos); canDisplace(bl, liq) || replaceableWith(bl, liq) { + if bl := tx.Block(pos); canDisplace(bl, liq) { tx.SetLiquid(pos, liq) } else if bl := tx.Block(pos.Side(face)); canDisplace(bl, liq) || replaceableWith(bl, liq) { tx.SetLiquid(pos.Side(face), liq)