Skip to content

fix: avoid duplicate brewing scanning boon - #41

Merged
SirEdvin merged 1 commit into
1.20from
fix/1.20-brewing-automata-duplicate-scanning-boon
Aug 3, 2026
Merged

fix: avoid duplicate brewing scanning boon#41
SirEdvin merged 1 commit into
1.20from
fix/1.20-brewing-automata-duplicate-scanning-boon

Conversation

@SirEdvin

@SirEdvin SirEdvin commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Bug Description

Backport of #40 for the maintained Minecraft 1.20.1 line. A Brewing/Starbound Brewing upgraded turtle can register the SCANNING boon twice while initializing and crash the dedicated server.

Root Cause

ExperienceAutomataCorePeripheral invokes the virtual attachScanningBoon() hook from its initializer, while BrewingAutomataCorePeripheral also attached another boon with the same key in its own initializer.

Fix

Override attachScanningBoon() and register the richer Brewing scanning boon once through the existing superclass hook, matching the Mercantile implementation.

Test Plan

  • Root Gradle build
  • Fabric and Forge GameTests
  • Dedicated-server generated upgrade gallery for both 1.20.1 packs

Risk Assessment

Low — removes duplicate registration without changing boon contents.

@SirEdvin
SirEdvin merged commit 6eaece5 into 1.20 Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant