Chocolate Quest Repoured

Chocolate Quest Repoured

2M Downloads

Error when spawning a structure with a name that is less than or equal to 3 characters

judgekreep opened this issue ยท 3 comments

commented

General Information
To check a checkbox: Insert a X between the square brackets, you need to remove the space though.

  • I play...
    • With a large modpack
    • Only with CQR and it's dependencies
  • The issue occurs in...
    • Singleplayer
    • Multiplayer
  • I have searched for this or a similar issue before reporting and it was either (1) not previously reported, or (2) previously fixed and I'm having the same problem.
  • I am using the latest version of the mod (all versions can be found on github under releases)
  • I read through the FAQ and I could not find something helpful (FAQ)
  • I reproduced the bug without any other mod's except forge, cqr and it's dependencies
  • The game crashes because of this bug

Describe the bug
Spawn a structure with a name that is less than or equal to 3 characters.
The structure can be naturally spawned or via creative.
Leave the world and re-enter... and crash:

Description: Exception in server tick loop

java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.String.substring(String.java:1951)
at team.cqr.cqrepoured.structuregen.DungeonDataManager.readData(DungeonDataManager.java:174)
at team.cqr.cqrepoured.structuregen.DungeonDataManager.handleWorldLoad(DungeonDataManager.java:88)
at team.cqr.cqrepoured.util.handlers.EventsHandler.onWorldLoad(EventsHandler.java:195)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_41_EventsHandler_onWorldLoad_Load.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:132)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:156)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)
at java.lang.Thread.run(Thread.java:745)

Deleting the structures.nbt file within the world/data/CQR folder fixes the problem.

commented

fixed in v2.6.3B

commented

Please make use of the issue template and upload the complete log to a paste site instead of just posting a part of it.

commented

Will be fixed with the next release.