Move method to client Environment
This commit is contained in:
parent
d3db623de5
commit
c4d7035ef2
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
package ru.bclib.api.datafixer;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.components.toasts.SystemToast;
|
||||
|
@ -168,6 +170,7 @@ public class DataFixerAPI {
|
|||
return profile;
|
||||
}
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
static void showBackupWarning(String levelID, Consumer<Boolean> whenFinished){
|
||||
TranslatableComponent promptText = new TranslatableComponent("bclib.datafixer.backupWarning.prompt");
|
||||
TranslatableComponent buttonTitle = new TranslatableComponent("bclib.datafixer.backupWarning.button");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue