mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-04 06:22:58 +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("X").setValue(unit.getWorld().getX());
|
||||||
getCpu().getRegisterSet().getRegister("Y").setValue(unit.getWorld().getY());
|
getCpu().getRegisterSet().getRegister("Y").setValue(unit.getWorld().getY());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -156,6 +156,9 @@ public class VaultWorldGenerator {
|
|||||||
map.setTileAt(floorTile, 1, worldSize / 2 - 1);
|
map.setTileAt(floorTile, 1, worldSize / 2 - 1);
|
||||||
roomCenters.add(new Point(1, worldSize / 2 - 1));
|
roomCenters.add(new Point(1, worldSize / 2 - 1));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +89,8 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable
|
|||||||
case WEST:
|
case WEST:
|
||||||
setX(nextWorld.getWorldSize() - 1);
|
setX(nextWorld.getWorldSize() - 1);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -270,4 +272,4 @@ public abstract class GameObject implements JSONSerializable, MongoSerializable
|
|||||||
|
|
||||||
return document;
|
return document;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user