Integer -> Long

This commit is contained in:
Ellpeck 2016-06-17 15:00:25 +02:00
parent cba94da5c5
commit c191761cda

View file

@ -64,7 +64,7 @@ public final class TeslaUtil{
}
if(handlerFrom != null && handlerTo != null){
long drain = handlerFrom.takePower(Integer.MAX_VALUE, true);
long drain = handlerFrom.takePower(Long.MAX_VALUE, true);
if(drain > 0){
long filled = handlerTo.givePower(drain, false);
handlerFrom.takePower(filled, false);