Changed strange list access for items and liquids

This commit is contained in:
Anuken
2017-12-29 19:35:34 -05:00
parent 43e728739a
commit e39f9c624d
6 changed files with 27 additions and 18 deletions

View File

@@ -299,7 +299,7 @@ public class BlocksFragment implements Fragment{
int amount = control.getItems()[i];
if(amount == 0) continue;
String formatted = amount > 99999999 ? "inf" : format(amount);
Image image = new Image(Draw.region("icon-" + Item.items.get(i).name));
Image image = new Image(Draw.region("icon-" + Item.getByID(i).name));
Label label = new Label(formatted);
label.setFontScale(fontscale*1.5f);
itemtable.add(image).size(8*3);