Skip to content

Commit

Permalink
Should fix server crash problem when harvesting biomass
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Aug 13, 2018
1 parent e69111f commit 96fc3ed
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Expand Up @@ -31,7 +31,7 @@ public CubotInventory(Cubot cubot) {
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) {
Expand Down
Expand Up @@ -17,6 +17,10 @@ public int getId() {
return ID;
}

public ItemBiomass() {
super(null);
}

public ItemBiomass(Document document) {
super(document);
}
Expand Down
Expand Up @@ -12,6 +12,10 @@ public int getId() {
return ID;
}

public ItemCopper() {
super(null);
}

public ItemCopper(Document document) {
super(document);
}
Expand Down
Expand Up @@ -11,6 +11,10 @@ public int getId() {
return ID;
}

public ItemIron() {
super(null);
}

public ItemIron(Document document) {
super(document);
}
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 96fc3ed

Please sign in to comment.