ClassiCube / MCGalaxy

A Minecraft Classic / ClassiCube server software
GNU General Public License v3.0
175 stars 83 forks source link

[Countdown] Set speedtype to default one if speedtype is null #633

Closed forkiesassds closed 3 years ago

forkiesassds commented 3 years ago

Fixes #578.

UnknownShadow200 commented 3 years ago

slight issue, Interval = 650; SpeedType = "normal"; should be surrounded with { }

as without the { }, the code is actually the same as

if (SpeedType == null || SpeedType == "" || Interval == 0) 
    Interval = 650; 
SpeedType = "normal";
forkiesassds commented 3 years ago

Ok, should be ready for merge.

UnknownShadow200 commented 3 years ago

Thanks