diff --git a/README.md b/README.md index 4140c528c..53024b26b 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ - Added Better World Generation 4 support - Made shears instantly destroy Biomes O Plenty leaves - Adjusted high grass hitbox to cover both blocks + - Fixed an issue causing sound files to be created on the desktop Version 0.5.1 '17-04-2013' - Fixed server crash with mudballs diff --git a/src/minecraft/biomesoplenty/BiomesOPlenty.java b/src/minecraft/biomesoplenty/BiomesOPlenty.java index 737f38e3d..781ec2a61 100644 --- a/src/minecraft/biomesoplenty/BiomesOPlenty.java +++ b/src/minecraft/biomesoplenty/BiomesOPlenty.java @@ -7,6 +7,7 @@ import java.io.OutputStream; import java.util.logging.Level; import net.minecraft.block.BlockDispenser; +import net.minecraft.client.Minecraft; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityEggInfo; @@ -69,12 +70,13 @@ public class BiomesOPlenty boolean isClient = proxy instanceof ClientProxy; String[] soundFiles = { "bopdisc.ogg", "bopdiscmud.ogg"}; - + if (isClient) { for (String soundFile : soundFiles) try { - File file = new File("resources/mod/streaming/" + soundFile); + System.out.println(Minecraft.getMinecraftDir().getAbsolutePath().toString() + "/resources/mod/streaming/" + soundFile); + File file = new File(Minecraft.getMinecraftDir().getAbsolutePath() + "/resources/mod/streaming/" + soundFile); if (!file.exists()) { System.out.println("[BiomesOPlenty] " + soundFile + " doesn't exist, creating..."); file.getParentFile().mkdirs();