Performance: Make melting-down nuclear furnaces find nearby nuclear sirens instead of vice-versa
ByThePowerOfScience opened this issue ยท 0 comments
entity.getNearbyCriticalFurnaces((ServerLevel) level, 128).findAny()
ends up being a fairly expensive process when run so frequently, with one nuclear siren on the server using roughly .38% of the total server time.
Since melting down happens less frequently than once per second, making the Siren a POI and having the Furnace find nearby Sirens to trigger would run the POI check less often.