Skip to content

Commit

Permalink
Disable broken SVC compat for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Aug 8, 2024
1 parent ebef2df commit 00e8848
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.gaming32.worldhost.mixin;

import io.github.gaming32.worldhost.WorldHost;
import io.github.gaming32.worldhost.compat.WorldHostSimpleVoiceChatCompat;
import net.minecraft.server.MinecraftServer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -14,8 +12,8 @@
public class MixinMinecraftServer {
@Inject(method = "tickServer", at = @At("RETURN"))
private void tickVoiceChat(BooleanSupplier hasTimeLeft, CallbackInfo ci) {
if (WorldHost.isModLoaded("voicechat")) {
WorldHostSimpleVoiceChatCompat.tick((MinecraftServer)(Object)this);
}
// if (WorldHost.isModLoaded("voicechat")) {
// WorldHostSimpleVoiceChatCompat.tick((MinecraftServer)(Object)this);
// }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.gaming32.worldhost.protocol.punch;

import io.github.gaming32.worldhost.WorldHost;
import io.github.gaming32.worldhost.compat.WorldHostSimpleVoiceChatCompat;
import net.minecraft.client.Minecraft;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -60,10 +59,10 @@ public enum TransmitterFinder {
SIMPLE_VOICE_CHAT {
@Override
public PunchTransmitter findTransmitter() {
if (!WorldHost.isModLoaded("voicechat")) {
// if (!WorldHost.isModLoaded("voicechat")) {
return null;
}
return WorldHostSimpleVoiceChatCompat.getTransmitter().orElse(null);
// }
// return WorldHostSimpleVoiceChatCompat.getTransmitter().orElse(null);
}
};

Expand Down

0 comments on commit 00e8848

Please sign in to comment.