Throttle "powered" cable updates even further when it doesn't oscillate

This commit is contained in:
DBotThePony 2025-01-19 23:12:18 +07:00
parent a9b191eb72
commit 3f91e554cb
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -202,9 +202,9 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
lastPoweredSwitchFrequency = (lastPoweredSwitchFrequency shl 1) or (if (changed) 1 else 0)
if (hasBlockstateTimer && SERVER_IS_LIVE) {
var i = 20
var i = 30
for (index in 0 .. 16) {
for (index in 0 .. 26) {
if (lastPoweredSwitchFrequency and (1 shl index) != 0) {
i--
}