diff --git a/common/src/main/java/com/gitlab/cdagaming/craftpresence/utils/world/BiomeUtils.java b/common/src/main/java/com/gitlab/cdagaming/craftpresence/utils/world/BiomeUtils.java index 1e6cd172e..ce204b7a9 100644 --- a/common/src/main/java/com/gitlab/cdagaming/craftpresence/utils/world/BiomeUtils.java +++ b/common/src/main/java/com/gitlab/cdagaming/craftpresence/utils/world/BiomeUtils.java @@ -31,7 +31,7 @@ import io.github.cdagaming.unicore.utils.FileUtils; import io.github.cdagaming.unicore.utils.MappingUtils; import io.github.cdagaming.unicore.utils.StringUtils; -import net.minecraft.src.BiomeGenBase; +import net.minecraft.src.MobSpawnerBase; import unilib.external.io.github.classgraph.ClassInfo; import java.util.List; @@ -91,7 +91,7 @@ public class BiomeUtils implements ExtendedModule { /** * The Player's Current Biome, if any */ - private BiomeGenBase CURRENT_BIOME; + private MobSpawnerBase CURRENT_BIOME; @Override public void clearFieldData() { @@ -114,7 +114,7 @@ public void clearAttributes() { @Override public void updateData() { - final BiomeGenBase newBiome = CraftPresence.world.getWorldChunkManager().func_4073_a((int) CraftPresence.player.posX, (int) CraftPresence.player.posZ); + final MobSpawnerBase newBiome = CraftPresence.world.getWorldChunkManager().func_4073_a((int) CraftPresence.player.posX, (int) CraftPresence.player.posZ); final String newBiomeName = newBiome.biomeName; final String newBiomeIdentifier = StringUtils.getOrDefault(newBiomeName, MappingUtils.getClassName(newBiome)); @@ -183,17 +183,17 @@ public void updatePresence() { * * @return The detected Biome Types found */ - private List getBiomeTypes() { - List biomeTypes = StringUtils.newArrayList(); + private List getBiomeTypes() { + List biomeTypes = StringUtils.newArrayList(); if (biomeTypes.isEmpty()) { // Fallback: Use Manual Class Lookup - for (ClassInfo classInfo : FileUtils.getClassNamesMatchingSuperType(BiomeGenBase.class).values()) { + for (ClassInfo classInfo : FileUtils.getClassNamesMatchingSuperType(MobSpawnerBase.class).values()) { if (classInfo != null) { try { Class classObj = FileUtils.loadClass(classInfo.getName()); if (classObj != null) { - BiomeGenBase biomeObj = (BiomeGenBase) classObj.getDeclaredConstructor().newInstance(); + MobSpawnerBase biomeObj = (MobSpawnerBase) classObj.getDeclaredConstructor().newInstance(); if (!biomeTypes.contains(biomeObj)) { biomeTypes.add(biomeObj); } @@ -210,7 +210,7 @@ private List getBiomeTypes() { @Override public void getInternalData() { - for (BiomeGenBase biome : getBiomeTypes()) { + for (MobSpawnerBase biome : getBiomeTypes()) { if (biome != null) { String biomeName = StringUtils.getOrDefault(biome.biomeName, MappingUtils.getClassName(biome)); String name = StringUtils.formatIdentifier(biomeName, true, !CraftPresence.CONFIG.advancedSettings.formatWords); diff --git a/gradle.properties b/gradle.properties index d40bf15ac..e0c7a6344 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,10 +11,10 @@ enabled_platforms=fabric,modloader isLegacy=true isJarMod=true # Mapping Info -mc_mappings=3.1-b1.5_01 +mc_mappings=3.0-b1.4_01 mc_mappings_type=mcp -mc_version=b1.5_01 -mc_protocol=11 +mc_version=b1.4_01 +mc_protocol=10 display_version= # Fabric Info fabric_loader_version=0.16.9 @@ -22,9 +22,9 @@ fabric_api_version= fabric_game_version_range=* fabric_loader_version_range=>=0.13.0 # Forge Info -forge_version=b1.5_01+build.4 +forge_version=b1.4_01 fml_version_range= -forge_game_version_range=b1.5_01 +forge_game_version_range=b1.4_01 forge_loader_version_range= # Deployment Info versionId=2.5.2