mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-10-31 00:16:51 +00:00 
			
		
		
		
	Fixed 3 "switch without 'default' clause." issues (#207)
Fixed 3 "switch without 'default' clause."
This commit is contained in:
		
							parent
							
								
									50e0baa6ec
								
							
						
					
					
						commit
						638c5b3bb3
					
				| @ -125,6 +125,9 @@ public class CubotLidar extends HardwareModule { | ||||
|                 getCpu().getRegisterSet().getRegister("X").setValue(unit.getWorld().getX()); | ||||
|                 getCpu().getRegisterSet().getRegister("Y").setValue(unit.getWorld().getY()); | ||||
|                 break; | ||||
|                  | ||||
|             default: | ||||
|                 	break; | ||||
| 
 | ||||
|         } | ||||
|     } | ||||
|  | ||||
| @ -156,6 +156,9 @@ public class VaultWorldGenerator { | ||||
|                     map.setTileAt(floorTile, 1, worldSize / 2 - 1); | ||||
|                     roomCenters.add(new Point(1, worldSize / 2 - 1)); | ||||
|                     break; | ||||
|                 default: | ||||
|                      | ||||
|                 	break; | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -89,6 +89,8 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable | ||||
|                 case WEST: | ||||
|                     setX(nextWorld.getWorldSize() - 1); | ||||
|                     break; | ||||
|                 default: | ||||
|                 	break; | ||||
|             } | ||||
| 
 | ||||
|             return true; | ||||
| @ -270,4 +272,4 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable | ||||
| 
 | ||||
|         return document; | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user