uecasm / colony4cc

MineColonies for ComputerCraft integration addon mod for Minecraft
GNU General Public License v3.0
7 stars 8 forks source link

Server Crashed while using getInfo() #19

Closed PhamKun closed 1 year ago

PhamKun commented 1 year ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. place down townhall and setup colonies peripherals with a cc computer
  2. create new town
  3. turn on cc computer, lua, and try colony.getInfo()
  4. the game/server shutdown

Expected behavior should give out the info of the colony

Screenshots If applicable, add screenshots to help explain your problem.

Versions:

Additional context Add any other context about the problem here. Include logs (from a paste site like gist) if appropriate. crash-2022-09-11_22.43.15-server.txt

PhamKun commented 1 year ago

Minecraft: 1.19.2, forge 43.1.16 Minecolonies: 1.19.2-1.0.1004-ALPHA Colony4cc: 1.19.1-2.3.0.jar

I also tried 1.19.2. Info are above, same thing

uecasm commented 1 year ago

Ah, this will be due to the new build tool changes. I thought I'd protected most of the API calls for unexpected changes, but I guess this one was extra unexpected.

PhamKun commented 1 year ago

lol. There also crashed with getBuildings. I havent tested the citizen info so idk if it will crash or not

uecasm commented 1 year ago

It should only be those two. This is fixed in version 2.3.1, which should be out in a few minutes.