Skip to content

Commit 0b6d3b4

Browse files
cjlaroseclaude
andcommitted
Restrict dominant sparks to pulling from a single spark per tick
The changes in VazkiiMods#4963 generally fixed behaviors associated with establishing and re-establishing mana transfers to dominant sparks, but I think introduced an unintended consequence: it made it possible for dominant sparks to receive `TRANSFER_RATE` mana every tick from each unaugmented spark in range. Prior to the change, a dominant spark could receive at most `TRANSFER_RATE` mana from a single pool per tick. This change restores that behavior. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b9d92b0 commit 0b6d3b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Xplat/src/main/java/vazkii/botania/common/entity/ManaSparkEntity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ public void updateTransfers() {
284284
SparkUpgradeType otherUpgrade = spark.getUpgrade();
285285
if (spark != this && otherUpgrade == SparkUpgradeType.NONE && spark.getAttachedManaReceiver() instanceof ManaPool) {
286286
inboundTransfers.add(spark);
287+
break; // Only add one spark
287288
}
288289
}
289290
}

0 commit comments

Comments
 (0)