practise server category fix once more

This commit is contained in:
Stachelbeere1248 2024-02-13 22:14:58 +01:00
parent e2674bc000
commit 0ce5298074
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -1,5 +1,6 @@
package com.github.stachelbeere1248.zombiesutils.timer.recorder;
import com.github.stachelbeere1248.zombiesutils.ZombiesUtils;
import com.github.stachelbeere1248.zombiesutils.config.ZombiesUtilsConfig;
import com.github.stachelbeere1248.zombiesutils.game.enums.Difficulty;
import com.github.stachelbeere1248.zombiesutils.game.GameMode;
@ -30,6 +31,7 @@ public class Category {
}
public static void setSelectedCategory(String selectedCategory) {
if (!ZombiesUtils.isHypixel()) selectedCategory += "-practise";
Category.selectedCategory = selectedCategory;
Timer.getInstance().ifPresent(timer -> timer.setCategory(new Category()));
}