Skip to content

Commit

Permalink
item/bucket.go: Place liquid on clicked face of replaceable blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Dec 29, 2024
1 parent c709972 commit 69118fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/item/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 69118fc

Please sign in to comment.