Fixed an issue causing sound files to be created on the desktop
This commit is contained in:
parent
fa80c61faa
commit
1e20a0e961
2 changed files with 5 additions and 2 deletions
|
@ -31,6 +31,7 @@
|
||||||
- Added Better World Generation 4 support
|
- Added Better World Generation 4 support
|
||||||
- Made shears instantly destroy Biomes O Plenty leaves
|
- Made shears instantly destroy Biomes O Plenty leaves
|
||||||
- Adjusted high grass hitbox to cover both blocks
|
- 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'
|
Version 0.5.1 '17-04-2013'
|
||||||
- Fixed server crash with mudballs
|
- Fixed server crash with mudballs
|
||||||
|
|
|
@ -7,6 +7,7 @@ import java.io.OutputStream;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import net.minecraft.block.BlockDispenser;
|
import net.minecraft.block.BlockDispenser;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityEggInfo;
|
import net.minecraft.entity.EntityEggInfo;
|
||||||
|
@ -74,7 +75,8 @@ public class BiomesOPlenty
|
||||||
{
|
{
|
||||||
for (String soundFile : soundFiles) try
|
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()) {
|
if (!file.exists()) {
|
||||||
System.out.println("[BiomesOPlenty] " + soundFile + " doesn't exist, creating...");
|
System.out.println("[BiomesOPlenty] " + soundFile + " doesn't exist, creating...");
|
||||||
file.getParentFile().mkdirs();
|
file.getParentFile().mkdirs();
|
||||||
|
|
Loading…
Reference in a new issue