Skip to content

Commit

Permalink
Fix #900
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 15, 2013
1 parent a767967 commit f92c919
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/patches.xml
Expand Up @@ -722,6 +722,14 @@
</class>
<class id="thermalexpansion.block.conduit.GridLiquid">
<synchronize>transferLiquid,removeNode,removeConduit,setNewGrid,changeMode,increaseTracker,addNode,addConduit</synchronize>
<replaceMethod code="{
int n = this.conduitList.size() + this.outputList.size() + this.inputList.size();
if (n < 1) {
n = 1;
}
int a = getLiquidAmount();
return isFirst(theCond) ? (a / n + a % n) : (a / n);
}">getSharedAmount</replaceMethod>
</class>
<class id="thermalexpansion.block.conduit.GridEnergy">
<synchronize>transferEnergy,removeNode,removeConduit,setNewGrid,changeMode,increaseTracker,addNode,addConduit</synchronize>
Expand Down

0 comments on commit f92c919

Please sign in to comment.