mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-12 03:19:09 +01:00
Integer -> Long
This commit is contained in:
parent
cba94da5c5
commit
c191761cda
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public final class TeslaUtil{
|
||||||
}
|
}
|
||||||
|
|
||||||
if(handlerFrom != null && handlerTo != null){
|
if(handlerFrom != null && handlerTo != null){
|
||||||
long drain = handlerFrom.takePower(Integer.MAX_VALUE, true);
|
long drain = handlerFrom.takePower(Long.MAX_VALUE, true);
|
||||||
if(drain > 0){
|
if(drain > 0){
|
||||||
long filled = handlerTo.givePower(drain, false);
|
long filled = handlerTo.givePower(drain, false);
|
||||||
handlerFrom.takePower(filled, false);
|
handlerFrom.takePower(filled, false);
|
||||||
|
|
Loading…
Reference in a new issue