From 5f03fd3696e70c52e04fe48915d7a4e09cbd55b9 Mon Sep 17 00:00:00 2001 From: repo_alt Date: Fri, 1 Jan 2021 21:48:25 +0300 Subject: [PATCH] AE itemstack size may be larger that int --- build.properties | 2 +- .../scala/li/cil/oc/integration/appeng/NetworkControl.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.properties b/build.properties index f3694c48e..b70843bac 100644 --- a/build.properties +++ b/build.properties @@ -1,7 +1,7 @@ minecraft.version=1.7.10 forge.version=10.13.4.1614-1.7.10 -oc.version=1.7.5.7-GTNH +oc.version=1.7.5.8-GTNH ae2.version=rv2-beta-26 bc.version=7.0.9 diff --git a/src/main/scala/li/cil/oc/integration/appeng/NetworkControl.scala b/src/main/scala/li/cil/oc/integration/appeng/NetworkControl.scala index bfaa04f3a..c41389852 100644 --- a/src/main/scala/li/cil/oc/integration/appeng/NetworkControl.scala +++ b/src/main/scala/li/cil/oc/integration/appeng/NetworkControl.scala @@ -393,7 +393,7 @@ object NetworkControl { val hash = result(0) // it would have been nice to put these fields in a registry convert // but the potential ae item needs the tile and position data - hash.update("size", Int.box(aeItem.getStackSize.toInt)) + hash.update("size", Long.box(aeItem.getStackSize)) hash.update("isCraftable", Boolean.box(aeItem.isCraftable)) return hash }