AbyssalCraft

AbyssalCraft

20M Downloads

Negative amount of energy displayed in tiered energy container GUI

SaturninTheAlien opened this issue ยท 0 comments

commented

Intro:

2018-09-27_11 48 59

Description:

When the amount of energy stored in Energy Container is greater than about 32700 it is displayed in GUI as negative number.

I guess it is caused by incorrect conversion integer to short because the maximum value of short is 32767.

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

Crash report:


Affected versions ("latest" is NOT a version):

  • Minecraft: 1.12.2
  • Forge: 1.12.2 - 14.23.4.2758
  • AbyssalCraft: 1.9.4.13

Latest log file for when the issue was present: