Tech Reborn

Tech Reborn

30M Downloads

Iron furnaces are excessively laggy due to its tick behavior

aria1th opened this issue ยท 1 comments

commented

Describe the bug
Single Iron Furnace that tries to smelt invaild recipe causes excessive lag.

Steps to Reproduce
How to reproduce:
Put items and fuels (i.e. oak plank + oak plank) in furnace, it will try to find recipe continuously and lag the server. Single furnace can take 4-5mspt in 3600X, which means 10 of them is efficiently powerful to crash server by server watchdog.

Screenshots
2022-02-09_02 03 28

mspt is logged by carpet mod.

Environment (please complete the following information with the version):

  • Minecraft: 1.18.1, Latest fabric version(beta.9)
  • Mod Loader: fabric 0.12.12

Logs
No crash log is provided except server watchdog.

Additional context
BlockEntity should cache its recipe result by its itemstack reference, and only check if it has changed.

commented

Fixed in #2806