Skip to content

Game freezes when pasting patterns into a bookΒ #975

@Pasu4

Description

@Pasu4

Modloader

Fabric

Minecraft version

1.20.1

Hex Casting version

0.11.3

Modloader version

Fabric 0.18.1

Modpack info

Private modpack, see Other information for a list of mods

The latest.log file

https://mclo.gs/B1Igx1I

Issue description

Pasting patterns into a book freezes the game if there are any line breaks after the patterns. The line breaks don't have to be directly behind the pattern list, as long as they are after it. The pattern itself can be pasted as normal but typing a line break after it also freezes the game. The game does not recover from the freeze and eventually crashes.

Example:

Printer's Gambit
any -> 
[[EAST, wawqwawaw][WEST, qqqaw], (vec), [NORTH_EAST, aawdd][WEST, dwewdweq]]

Print the string representation of the top iota to the printer.

If it is of any relevance, the text was copied from VS Code on Windows, line breaks in the editor are CRLF.

Steps to reproduce

  1. Open a Book and Quill
  2. Paste the following into the book:
    Printer's Gambit
    any -> 
    [[EAST, wawqwawaw][WEST, qqqaw], (vec), [NORTH_EAST, aawdd][WEST, dwewdweq]]
    
    Print the string representation of the top iota to the printer.
    
  3. The game freezes.
  4. The game crashes (Out of Memory).

Other information

Content of the mods folder:

appleskin-fabric-mc1.20.1-2.5.1.jar
cardinal-components-api-5.2.3.jar
clientsort-fabric-2.1.4+1.20.1.jar
cloth-config-11.1.136-fabric.jar
comforts-fabric-6.4.0+1.20.1.jar
craftable_bundles-1.0-fabric-1.20.1.jar
fabric-api-0.92.6+1.20.1.jar
fabric-language-kotlin-1.13.7+kotlin.2.2.21.jar
ferritecore-6.0.1-fabric.jar
geckolib-fabric-1.20.1-4.8.2.jar
gravestones-v1.15.jar
hexal-fabric-1.20.1-0.3.1.jar
hexcasting-fabric-1.20.1-0.11.3.jar
inline-fabric-1.20.1-1.2.2.jar
jei-1.20.1-fabric-15.20.0.112.jar
journeymap-1.20.1-5.10.3-fabric.jar
lighty-fabric-2.1.2+1.20.1.jar
lithium-fabric-mc1.20.1-0.11.4.jar
modmenu-7.2.2.jar
moreiotas-fabric-1.20.1-0.1.1.jar
MouseTweaks-fabric-mc1.20-2.26.jar
Patchouli-1.20.1-84.1-FABRIC.jar
paucal-0.6.0+1.20.1-fabric.jar
Searchables-fabric-1.20.1-1.0.3.jar
sodium-fabric-0.5.13+mc1.20.1.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    πŸ“‹ Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions