very experimental drive support!!!

This commit is contained in:
Raoul Van den Berge
2015-12-13 18:10:54 +01:00
parent 9836dfb77c
commit 7f594b5e36
10 changed files with 272 additions and 99 deletions

View File

@@ -53,8 +53,8 @@ public class GuiGrid extends GuiContainer {
for (int i = 0; i < 9 * 4; ++i) {
ItemStack stack = null;
if (grid.isConnected() && i < grid.getController().getStorage().all().size()) {
StorageItem item = grid.getController().getStorage().all().get(i);
if (grid.isConnected() && i < grid.getController().getStorage().getItems().size()) {
StorageItem item = grid.getController().getStorage().getItems().get(i);
stack = new ItemStack(item.getType(), item.getQuantity(), item.getMeta());