Skip to content

Commit

Permalink
Fix sound position moving for computronics
Browse files Browse the repository at this point in the history
Signed-off-by: djpadbit <[email protected]>
  • Loading branch information
djpadbit committed Apr 22, 2019
1 parent d2b5fcd commit 8bc501c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/com/sonicether/soundphysics/SoundPhysics.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,8 @@ public static void source_check_add(Source s) {
@Mod.EventBusSubscriber
public static class DebugDisplayEventHandler {
@SubscribeEvent
public static void onDebugOverlay(RenderGameOverlayEvent.Text event)
{
if (mc == null) return; // In case we fuck up somewhere
if (mc.gameSettings.showDebugInfo && Config.dynamicEnvironementEvalutaion && Config.debugInfoShow) {
public static void onDebugOverlay(RenderGameOverlayEvent.Text event) {
if (mc != null && mc.gameSettings.showDebugInfo && Config.dynamicEnvironementEvalutaion && Config.debugInfoShow) {
event.getLeft().add("");
event.getLeft().add("[SoundPhysics] "+String.valueOf(source_list.size())+" Sources");
event.getLeft().add("[SoundPhysics] Source list :");
Expand Down Expand Up @@ -366,7 +364,7 @@ public static void onPlaySound(final float posX, final float posY, final float p
*/
// For sounds that get played using OpenAL directly or just not using the minecraft sound system
public static void onPlaySoundAL(final float posX, final float posY, final float posZ, final int sourceID) {
onPlaySound(posX, posY, posZ, sourceID, SoundCategory.BLOCKS, "null");
onPlaySound(posX, posY, posZ, sourceID, SoundCategory.MASTER, "null");
}

/**
Expand Down

0 comments on commit 8bc501c

Please sign in to comment.