mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-10-31 16:26:51 +00:00 
			
		
		
		
	changed fields names
This commit is contained in:
		
							parent
							
								
									f89c39c756
								
							
						
					
					
						commit
						a40a0712f0
					
				| @ -20,7 +20,7 @@ public class ItemsContainer extends GameObject implements InventoryHolder { | |||||||
| 
 | 
 | ||||||
|     public ItemsContainer(Document document) { |     public ItemsContainer(Document document) { | ||||||
|         super(document); |         super(document); | ||||||
|         this.items = (List<Item>) document.get("itemsCount"); |         this.items = (List<Item>) document.get("items"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
| @ -56,14 +56,14 @@ public class ItemsContainer extends GameObject implements InventoryHolder { | |||||||
|     @Override |     @Override | ||||||
|     public JSONObject jsonSerialise() { |     public JSONObject jsonSerialise() { | ||||||
|         JSONObject json = super.jsonSerialise(); |         JSONObject json = super.jsonSerialise(); | ||||||
|         json.put("itemsCount", items); |         json.put("items", items); | ||||||
|         return json; |         return json; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public Document mongoSerialise() { |     public Document mongoSerialise() { | ||||||
|         Document dbObject = super.mongoSerialise(); |         Document dbObject = super.mongoSerialise(); | ||||||
|         dbObject.put("itemsCount", items); |         dbObject.put("items", items); | ||||||
|         return dbObject; |         return dbObject; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user