Railcraft Reborn

Railcraft Reborn

3M Downloads

Regex matching in routing tables does not work

radostin04 opened this issue ยท 2 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Bug

Regex matching (with the ?= operator for Name and Dest) does not function. Even when the string should be match, a routing detector never produces an output and routing switches never switch

Railcraft Reborn version

1.1.1

NeoForge/Forge version

NeoForge 47.1.101

Minecraft version

1.20.1

Minecraft server

No

To Reproduce

  1. Place a track and a routing detector next to it
  2. Place a locomotive on the track and give it a ticket with a destination such as "Test"
  3. Place a routing table inside the routing detector, with some regex that should match the string set in the ticket. For example, for the destination Test, Dest?=Test, Dest?=Test$ and Dest?=.* should all match.

Expected behavior

The routing detector should produce a redstone signal when the regex defined in the routing table matches the locomotive's ticket

Logs & Environment

No response

Screenshots & Video

image
image
image
image

commented

Thank you, the issue is resolved in that build