From c191761cdaf1958191059c84ac6098cf573e9d8d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 17 Jun 2016 15:00:25 +0200 Subject: [PATCH] Integer -> Long --- .../de/ellpeck/actuallyadditions/mod/util/compat/TeslaUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/TeslaUtil.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/TeslaUtil.java index 96eb15b5a..b0cf1fd36 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/TeslaUtil.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/TeslaUtil.java @@ -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);