diff options
author | Tec <daniel112092@gmail.com> | 2020-06-14 09:12:55 +0200 |
---|---|---|
committer | Tec <daniel112092@gmail.com> | 2020-06-14 09:12:55 +0200 |
commit | 028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a (patch) | |
tree | 64b707c771f11b6b3906c59947f3869fdfa2d76e | |
parent | 12d5080675762c4ce760f371673a2af37d6476ac (diff) | |
download | GT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.tar.gz GT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.tar.bz2 GT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.zip |
Fix sound loops
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java | 9 | ||||
-rw-r--r-- | src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg | bin | 14802 -> 29373 bytes | |||
-rw-r--r-- | src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg | bin | 15252 -> 26378 bytes |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java index 338af1626e..e8e1a7eb27 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java @@ -25,7 +25,7 @@ public class SoundLoop extends MovingSound{ zPosF=base.getZCoord(); worldID=base.getWorld().provider.dimensionId; repeat=true; - volume=0f; + volume= 0.0625f; } @Override @@ -34,14 +34,13 @@ public class SoundLoop extends MovingSound{ return; } if(fadeMe) { - volume-=0.05f; - if(volume<0){ + volume-=0.0625f; + if(volume<=0){ volume=0; - }else if(volume==0){ donePlaying=true; } }else if(volume<1) { - volume += 0.05f; + volume += 0.0625f; } World world=Minecraft.getMinecraft().thePlayer.worldObj; donePlaying=world.provider.dimensionId!=worldID || diff --git a/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg b/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg Binary files differindex 8eab2d92e2..f02581ae56 100644 --- a/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg +++ b/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg diff --git a/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg b/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg Binary files differindex b16d1297f4..10ac371e19 100644 --- a/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg +++ b/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg |