Throttle "powered" cable updates even further when it doesn't oscillate
This commit is contained in:
parent
a9b191eb72
commit
3f91e554cb
@ -202,9 +202,9 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
|
|||||||
lastPoweredSwitchFrequency = (lastPoweredSwitchFrequency shl 1) or (if (changed) 1 else 0)
|
lastPoweredSwitchFrequency = (lastPoweredSwitchFrequency shl 1) or (if (changed) 1 else 0)
|
||||||
|
|
||||||
if (hasBlockstateTimer && SERVER_IS_LIVE) {
|
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) {
|
if (lastPoweredSwitchFrequency and (1 shl index) != 0) {
|
||||||
i--
|
i--
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user