Client side function move
This commit is contained in:
parent
2b4612d196
commit
987568c43c
3 changed files with 8 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
|||
loader_version=0.10.8
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.8.2-beta
|
||||
mod_version = 0.8.3-beta
|
||||
maven_group = ru.betterend
|
||||
archives_base_name = better-end
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package ru.betterend;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
@ -75,4 +76,8 @@ public class BetterEnd implements ModInitializer {
|
|||
public static boolean isDevEnvironment() {
|
||||
return FabricLoader.getInstance().isDevelopmentEnvironment();
|
||||
}
|
||||
|
||||
public static boolean isClient() {
|
||||
return FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,6 @@ package ru.betterend.integration.byg;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.entity.SpawnGroup;
|
||||
import net.minecraft.particle.ParticleTypes;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
|
@ -11,6 +9,7 @@ import net.minecraft.world.biome.Biome;
|
|||
import net.minecraft.world.biome.BiomeEffects;
|
||||
import net.minecraft.world.biome.SpawnSettings.SpawnEntry;
|
||||
import net.minecraft.world.gen.GenerationStep.Feature;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.integration.Integrations;
|
||||
import ru.betterend.registry.EndFeatures;
|
||||
import ru.betterend.world.biome.BiomeDefinition;
|
||||
|
@ -44,7 +43,7 @@ public class OldBulbisGardens extends EndBiome {
|
|||
.addFeature(BYGFeatures.BULBIS_ODDITY)
|
||||
.addFeature(BYGFeatures.PURPLE_BULBIS_ODDITY);
|
||||
|
||||
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
|
||||
if (BetterEnd.isClient()) {
|
||||
SoundEvent loop = effects.getLoopSound().get();
|
||||
SoundEvent music = effects.getMusic().get().getSound();
|
||||
SoundEvent additions = effects.getAdditionsSound().get().getSound();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue