Mrbysco / ForceCraft

A mod inspired by DartCraft
https://curseforge.com/minecraft/mc-mods/forcecraft
GNU General Public License v3.0
12 stars 6 forks source link

[Bug]: Time torch crashes server instantly #74

Closed Kilazur closed 1 year ago

Kilazur commented 1 year ago

General Info

Forge version

43.2.3

Minecraft version

1.19

Mod version

3.2.2

Java version

/

Issue Description

Tried placing torches on a Resourceful furnace, server crashed. Looks like there is a recursion happening in the code leading to a StackOverflowException.

I can reproduce the same exact crash in single player with no other mods.

It seems the problem happens when two torches are next to one another.

Additional Information

​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickBlock(TimeTorchBlockEntity.java:77) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickNeighbor(TimeTorchBlockEntity.java:58) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.serverTick(TimeTorchBlockEntity.java:46) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} [12:29 PM] BOT Bisect Panel Bot: ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickBlock(TimeTorchBlockEntity.java:99) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickNeighbor(TimeTorchBlockEntity.java:58) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.serverTick(TimeTorchBlockEntity.java:46) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickBlock(TimeTorchBlockEntity.java:99) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickNeighbor(TimeTorchBlockEntity.java:58) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.serverTick(TimeTorchBlockEntity.java:46) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} [12:29 PM] BOT Bisect Panel Bot: ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickBlock(TimeTorchBlockEntity.java:99) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.tickNeighbor(TimeTorchBlockEntity.java:58) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading} ​​‍‍​​​‍​​‍‍​‍‍​​​‍‍​‍‍‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍‍​​‍​​‍‍​​‍​​​‍‍‍​​‍​​‍‍​‍​‍​​‍‍​‍​‍​​‍‍​​​​​​‍‍​​​​​​‍‍​​​​05.02 11:29:15 [Server] at com.mrbysco.forcecraft.blockentities.TimeTorchBlockEntity.serverTick(TimeTorchBlockEntity.java:46) ~[forcecraft-1.19.2-3.2.2.jar%23471!/:3.2.{re:classloading}

Mrbysco commented 1 year ago

Could you upload the actual crashlog to a website like Pastebin? or upload the log into this issue

Kilazur commented 1 year ago

https://pastebin.com/PQ5HpuL8

Mrbysco commented 1 year ago

Could you try the latest build on curseforge?

Kilazur commented 1 year ago

Crash is gone, but the torches don't seem to do anything. Gonna go back to the associated ticket.