refinedstorage icon indicating copy to clipboard operation
refinedstorage copied to clipboard

Crash when placing controller using a CC Tweaked turtle

Open budgej opened this issue 5 years ago • 1 comments

Issue description:

Placing the controller using a CC Tweaked turtle results in an illegal state exception.

Steps to reproduce:

  1. Place turtle and program to turtle.place() a controller
  2. Crash

Version (make sure you are on the latest version before reporting):

  • Minecraft: 1.15.2
  • Forge: 31.2.29
  • Refined Storage: 1.8.3 (I am not able to launch 1.8.7 for a separate crash...)

Does this issue occur on a server? Yes. Clients are disconnected instantly, then the server hangs and never closes.

If a (crash)log is relevant for this issue, link it here:

https://pastebin.com/yBkTTYrN

budgej avatar Jul 13 '20 18:07 budgej

Issue is as follows. When a controller gets placed during a tick the Network is not created soon enough for it to be available in ControllerBlock#onBlockPlacedBy. That however gets the networks Energy capability which evaluates the LazyOptional in ControllerTile which in turn tries to get the network.

Entirely unsure why this doesn't blow up if a player places the block.

Darkere avatar Jul 13 '20 22:07 Darkere

See #3424

raoulvdberge avatar Dec 21 '22 19:12 raoulvdberge

Hello. This bug has been fixed in v1.12.4 of Refined Storage. If this issue persists anyway, please feel free to create a new bug.

raoulvdberge avatar Nov 06 '23 07:11 raoulvdberge

This bug has also been fixed in v1.11.7 of Refined Storage for Minecraft 1.19.2. If this issue persists anyway, please feel free to create a new bug.

raoulvdberge avatar Nov 12 '23 13:11 raoulvdberge

Hello, this bug is now also fixed for Minecraft 1.18.2 in v1.10.6.

raoulvdberge avatar Nov 26 '23 12:11 raoulvdberge