From a24aefb522e1791322b36655dc41f17834bd3f34 Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Mon, 15 Jul 2013 18:15:10 -0400 Subject: [PATCH] changes to sound --- StevenDimDoors/mod_pocketDim/TileEntityRift.java | 6 +++++- StevenDimDoors/mod_pocketDim/items/itemRiftRemover.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/TileEntityRift.java b/StevenDimDoors/mod_pocketDim/TileEntityRift.java index 273a61a..ba7d97c 100644 --- a/StevenDimDoors/mod_pocketDim/TileEntityRift.java +++ b/StevenDimDoors/mod_pocketDim/TileEntityRift.java @@ -47,10 +47,11 @@ public class TileEntityRift extends TileEntity if(count>200&&dimHelper.dimList.get(this.worldObj.provider.dimensionId)!=null) { + /** if(rand.nextBoolean()) { - this.worldObj.playSound(xCoord, yCoord, zCoord, "mods.DimDoors.sfx.rift", (float) .7, 1,true); } + **/ nearestRiftData = dimHelper.dimList.get(this.worldObj.provider.dimensionId).findNearestRift(worldObj, 5, xCoord, yCoord, zCoord); if(nearestRiftData!=null) { @@ -140,6 +141,8 @@ public class TileEntityRift extends TileEntity if(dimHelper.instance.getLinkDataFromCoords(this.xCoord, this.yCoord, this.zCoord, this.worldObj.provider.dimensionId)!=null) { dimHelper.instance.removeLink(this.worldObj.provider.dimensionId, this.xCoord, this.yCoord, this.zCoord); + this.worldObj.playSound(xCoord, yCoord, zCoord, "mods.DimDoors.sfx.riftClose", (float) .7, 1,true); + } } @@ -181,6 +184,7 @@ public class TileEntityRift extends TileEntity link.numberofChildren++; dimHelper.instance.createLink(this.worldObj.provider.dimensionId, link.destDimID, x, y, z, link.destXCoord, link.destYCoord, link.destZCoord).numberofChildren=link.numberofChildren+1; this.hasGrownRifts=true; + } } } diff --git a/StevenDimDoors/mod_pocketDim/items/itemRiftRemover.java b/StevenDimDoors/mod_pocketDim/items/itemRiftRemover.java index 1d5452a..8d15172 100644 --- a/StevenDimDoors/mod_pocketDim/items/itemRiftRemover.java +++ b/StevenDimDoors/mod_pocketDim/items/itemRiftRemover.java @@ -85,7 +85,7 @@ public class itemRiftRemover extends Item //System.out.println(hit.hitVec); if(dimHelper.instance.removeRift(par2World, hit.blockX, hit.blockY, hit.blockZ, 1, par3EntityPlayer, par1ItemStack)) { - par3EntityPlayer.worldObj.playSoundAtEntity(par3EntityPlayer,"mods.DimDoors.sfx.riftClose", (float) .7, 1); + par3EntityPlayer.worldObj.playSoundAtEntity(par3EntityPlayer,"mods.DimDoors.sfx.riftClose", (float) .8, 1); }