Skip to content

bug: Crash upon placing circuit #23

Description

@steve6472

Describe the bug
Game crash upon placing a circuit with UUID (created circuit, idk how to name this)

To Reproduce
Steps to reproduce the behavior:

  1. Place circuit
  2. Enter circuit
  3. Exit circuit
  4. Place the circuit that dropped

Expected behavior
Game doesn't crash

Screenshots
Code fix for this crash:
In CommonCircuitBlockEntity simply replace normal cast to byte/int with cast to Short and byteValue/intValue
Image

Desktop (please complete the following information):

  • Mod loader: Fabric
  • Minecraft version: 1.21.11
  • Mod version: v1.0.9-1.21.11-fabric

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions