From 398b9a6442b87ee800445e2d5a971a236d8bff7f Mon Sep 17 00:00:00 2001 From: TwistedAsylumMC Date: Sat, 23 Sep 2023 15:58:34 +0100 Subject: [PATCH] block/decorated_pot.go: Implement MaxCounter to fix stack issues --- server/block/decorated_pot.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/block/decorated_pot.go b/server/block/decorated_pot.go index 806743cb3..65e73011e 100644 --- a/server/block/decorated_pot.go +++ b/server/block/decorated_pot.go @@ -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