mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
After much client code isolation, there should be no more issues on the server side with sounds
This commit is contained in:
1 parent
12b6b4610b
commit
339e048a4e
9 files changed
+103
-41
No files matched your search
@@ -1,9 +1,10 @@
|
||||
package mekanism.client.sound;
|
||||
|
||||
import mekanism.common.base.IHasSound;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class TileSound extends Sound implements IResettableSound {
|
||||
|
||||
public class TileSound extends Sound implements IResettableSound
|
||||
{
|
||||
IHasSound source;
|
||||
|
||||
boolean beginFadeOut;
|
||||
@@ -85,7 +86,7 @@ public class TileSound extends Sound implements IResettableSound {
|
||||
ticks++;
|
||||
}
|
||||
|
||||
if(!(source.shouldPlaySound() && source.getSound() == this))
|
||||
if(!(source.shouldPlaySound() && source.getSound().sound == this))
|
||||
{
|
||||
beginFadeOut = true;
|
||||
ticks = 0;
|
||||
|
||||
Reference in new issue
Block a user