Project Red - Expansion

Project Red - Expansion

31M Downloads

WirePropagator spamming IllegalArgumentException

ImMorpheus opened this issue ยท 1 comments

commented

Describe the bug
This:

try {wiresProvidePower.setBoolean(Blocks.REDSTONE_WIRE, b)}

is throwing IllegalArgumentException.

val c = classOf[BlockRedstoneWire].getDeclaredFields.apply(0)

evaluates to the field:

public static final PropertyEnum<BlockRedstoneWire.EnumAttachPosition> NORTH = PropertyEnum.<BlockRedstoneWire.EnumAttachPosition>create("north", BlockRedstoneWire.EnumAttachPosition.class);

which is final and is not a boolean.

To Reproduce
The exception is suppressed you can only look at this in a dev env or in a .nps

Expected behavior
No exception

Crash Log
No crash.

Versions
Include versions of the dependencies. And since you're looking at it, make sure ProjectRed is up to date. Don't submit bugs for old versions, as they could have been fixed.

  • CCL Version: CodeChicken Lib v3.2.3.358
  • FMP Version: Forge Multipart CBE v2.6.2.83
  • MrTJPCore Version: MrTJPCore v2.1.4.43
  • ProjectRed Version: ProjectRed Core v4.9.4.120

Screenshots/Videos
No screenshots, except the sampling which spotted the issue:

commented

That bit of code is no longer present, so this shouldn't happen anymore.