mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 06:16:45 +00:00
Should fix server crash problem when harvesting biomass
This commit is contained in:
parent
e69111ff3c
commit
96fc3ed68c
@ -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) {
|
||||
|
@ -17,6 +17,10 @@ public class ItemBiomass extends Item {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public ItemBiomass() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public ItemBiomass(Document document) {
|
||||
super(document);
|
||||
}
|
||||
|
@ -12,6 +12,10 @@ public class ItemCopper extends Item {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public ItemCopper() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public ItemCopper(Document document) {
|
||||
super(document);
|
||||
}
|
||||
|
@ -11,6 +11,10 @@ public class ItemIron extends Item {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public ItemIron() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
public ItemIron(Document document) {
|
||||
super(document);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user