Should fix server crash problem when harvesting biomass

This commit is contained in:
Simon 2018-08-13 15:43:41 -04:00
parent e69111ff3c
commit 96fc3ed68c
5 changed files with 13 additions and 3 deletions

View File

@ -31,7 +31,7 @@ public class CubotInventory extends CubotHardwareModule {
super(cubot);
inventory = new HashMap<>();
inventory.put(2, new ItemCopper(new Document()));
inventory.put(2, new ItemCopper(new Document())); // TODO: Remove debug value
}
public CubotInventory(Document document, ControllableUnit cubot) {

View File

@ -17,6 +17,10 @@ public class ItemBiomass extends Item {
return ID;
}
public ItemBiomass() {
super(null);
}
public ItemBiomass(Document document) {
super(document);
}

View File

@ -12,6 +12,10 @@ public class ItemCopper extends Item {
return ID;
}
public ItemCopper() {
super(null);
}
public ItemCopper(Document document) {
super(document);
}

View File

@ -11,6 +11,10 @@ public class ItemIron extends Item {
return ID;
}
public ItemIron() {
super(null);
}
public ItemIron(Document document) {
super(document);
}

View File

@ -28,8 +28,6 @@ public class TileMap implements JSONSerialisable, MongoSerializable {
public static final int VAULT_FLOOR = 4;
public static final int VAULT_WALL = 5;
public static final int ITEM_IRON = 3;
public static final int ITEM_COPPER = 4;
/**
* The map of tile