Skip to content

Crash when getNormal is called on copycat_half_layer block #1

Description

@Selians

The mod crashes with an IllegalArgumentException when getNormal runs on a copycats:copycat_half_layer block.

  • Minecraft 1.21.1 (NeoForge 21.1.228)
  • CreateAeronauticsCopycatWing 1.0.1
  • Copycats+ 3.0.4+mc.1.21.1-neoforge
  • Create Aeronautics 1.2.1
  • Sable 1.2.2

Stack trace snippet (happy to provide the full crash report if useful)

java.lang.IllegalArgumentException: Cannot get property EnumProperty{name=axis, clazz=class net.minecraft.core.Direction$Axis, values=[x, y, z]} as it does not exist in Block{copycats:copycat_half_layer}
	at net.minecraft.world.level.block.state.StateHolder.getValue(StateHolder.java:97)
	at com.mumu17.copycat_wing.Copycat_wing.copycat_wing$getNormal(Copycat_wing.java:29)
	at com.copycatsplus.copycats.content.copycat.half_layer.CopycatHalfLayerBlock.sable$getNormal(CopycatHalfLayerBlock.java:520)
	at dev.ryanhcode.sable.sublevel.plot.ServerLevelPlot.onBlockChange(ServerLevelPlot.java:665)
	at dev.ryanhcode.sable.sublevel.plot.ServerLevelPlot.load(ServerLevelPlot.java:611)

Honestly not sure on how to reproduce, but its affected two SP worlds where I loaded some helicopter schematics into. Didn't have any issues at the time, but now restarting MC a day later and attempting to load the world leads to this crash.
Crash does not seem consistent. Rebooting Minecraft and attempting to load the worlds again, and they load fine without crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions