AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

NoSuchMethodError: IBuilding.hasWorkOrder() crash when using Colony Integrator with MineColonies 1.21.1

Open harrisonryan100-bot opened this issue 1 month ago • 2 comments

Describe

I’m running into a crash when using the Colony Integrator with MineColonies on Minecraft 1.21.1. Everything works fine until I try to query builder requests — then the server crashes instantly. Setup

  • Minecraft: 1.21.1 (Forge)
  • Advanced Peripherals: 0.7.57b
  • MineColonies: 1.1.1213-1.21.1-snapshot
  • CC: Tweaked: 1.113.1 What’s happening When I run a Lua script that calls colony.getRequests() or colony.getBuildings(), the server crashes with this error: java.lang.NoSuchMethodError: 'boolean com.minecolonies.api.colony.buildings.IBuilding.hasWorkOrder()'

I’m not calling anything fancy — just trying to detect builder requests and fulfill them with AE2. Exporting items works fine, but the moment I touch requests, it blows up. What I think is going on Looks like IBuilding.hasWorkOrder() was removed or changed in newer MineColonies builds, and AP 0.7.57b is still referencing it. So the Colony Integrator crashes when it tries to access work order data. What I’d love

  • A patch or update that removes the call to hasWorkOrder() or uses the new API
  • Or a note on which MineColonies version is safe to use with AP 0.7.57b (so I can downgrade if needed)

Steps to reproduce

Steps to Reproduce

  • Install the following mod setup:
  • Minecraft: 1.21.1 (Forge)
  • Advanced Peripherals: 0.7.57b
  • MineColonies: 1.1.1213-1.21.1-snapshot
  • CC: Tweaked: 1.113.1
  • Place a Colony Integrator peripheral in your world and connect it to a CC: Tweaked computer.
  • Run a basic Lua script like this: local colony = peripheral.wrap("top") local requests = colony.getRequests() print(textutils.serialize(requests))
  • As soon as the script runs, the server crashes with: java.lang.NoSuchMethodError: 'boolean com.minecolonies.api.colony.buildings.IBuilding.hasWorkOrder()'

This shows the crash happens even with minimal interaction — just calling getRequests() is enough to trigger it. Let me know if you want me to bundle this into a GitHub issue format or help you submit it directly.

Multiplayer?

Yes

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

Neoforge - 21.1.215 ATM10 - 10-5.2

Screenshots or Videos

No response

Crashlog/log

https://github.com/harrisonryan100-bot/bug-report/blob/main/crash%20log

harrisonryan100-bot avatar Dec 08 '25 11:12 harrisonryan100-bot

Experiencing the same issue.

Crashing on calling: colonyIntegrator.amountOfConstructionSites()

Crashlog: https://gist.github.com/garrowson/b61ba0f4415cc86a0bed080541e0c6e4

garrowson avatar Dec 08 '25 12:12 garrowson

hasWorkOrder() was changed to isPendingConstruction() in commit 1161c2e: IBuilding.java#L146

garrowson avatar Dec 08 '25 12:12 garrowson