mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
Fix exception when a client tries to add a line with no points
This commit is contained in:
parent
a7fd57d1e6
commit
d6b4b50588
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ namespace Nibriboard.RippleSpace
|
|||
|
||||
public async Task AddLine(DrawnLine newLine)
|
||||
{
|
||||
if(newLine.Points.Count == 0) {
|
||||
Log.WriteLine("[Plane/{0}] Lines that don't contain any points can't be added to a chunk!");
|
||||
return;
|
||||
}
|
||||
List<DrawnLine> chunkedLineParts;
|
||||
// Split the line up into chunked pieces if neccessary
|
||||
if(newLine.SpansMultipleChunks)
|
||||
|
|
Loading…
Reference in a new issue