Skip to content

Commit

Permalink
block/decorated_pot.go: Implement MaxCounter to fix stack issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Sep 23, 2023
1 parent 5303318 commit 398b9a6
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 @@ -30,6 +30,11 @@ func (p DecoratedPot) BreakInfo() BreakInfo {
return newBreakInfo(0, alwaysHarvestable, nothingEffective, oneOf(p))
}

// MaxCount ...
func (DecoratedPot) MaxCount() int {
return 1
}

// EncodeItem ...
func (p DecoratedPot) EncodeItem() (name string, meta int16) {
return "minecraft:decorated_pot", 0
Expand Down

0 comments on commit 398b9a6

Please sign in to comment.