Skip to content

Commit

Permalink
block/decorated_pot.go: Keep sherds when middle click picked
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Jan 6, 2025
1 parent 798e0ee commit cbf4bf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/block/decorated_pot.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ type DecoratedPot struct {
Decorations [4]PotDecoration
}

// Pick ...
func (p DecoratedPot) Pick() item.Stack {
return item.NewStack(DecoratedPot{Decorations: p.Decorations}, 1)
}

// ExtractItem ...
func (p DecoratedPot) ExtractItem(h Hopper, pos cube.Pos, tx *world.Tx) bool {
if p.Item.Empty() {
Expand Down

0 comments on commit cbf4bf8

Please sign in to comment.