MrTJP / ProjectRed

Redstone Engineering
MIT License
474 stars 185 forks source link

[1.18.2] [Bug] Motors cannot push stuff out of chunk (modulus) #1815

Closed Heimdell closed 12 months ago

Heimdell commented 12 months ago

Minecraft version

1.18.x

CodeChickenLib version

4.1.4.488

CBMultipart version

3.1.0.137

ProjectRed version

4.16.0-beta-48

What happened?

Initial condition: an inchworm drive inside the borders of the chunk.

image

Upon exiting the chunk, an inchworm drive gets sliceported backwards to what feels like 16 blocks

image

(Notice flying lever)

It looks like a misuse of "modulus" operator.

P.S.: Recharge speed of motors is abysmal, compared to 1.12.2 or Red Power 2.

Crash log

Nah, it made me cry in other way.

How do you make it happen again?

Try to move a horizontal column of frames though chunk boundary with a motor. The head of the column will teleport to other side of the chunk and overwrite any block placed there.

MrTJP commented 12 months ago

Looking into it.

Also the power system was recently redone, but is not tuned yet. I'll temporarily decrease energy usage so they can operate at full speed

MrTJP commented 12 months ago

Fixed in 61fe9c393a6b1f222f4dc6a9d4bb136242f762b8