Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Engel <Justsweetluna@gmail.com>
  • Loading branch information
HerXayah committed May 1, 2022
1 parent 67a6bab commit 9b54157
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/main/java/meow/emily/patootie/events/PlayerEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,21 @@ public class PlayerEventHandler {
private final UUID vcUuid8 = UUID.fromString("43152d5b-ca80-4b29-8f48-39fd63e48dee");



@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent event) {
@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent event) {
Emily instance = Emily.getInstance();
if (!instance.isVoiceexist()) {
LabyModAddon addon = AddonLoader.getAddonByUUID(UUID.fromString(String.valueOf(vcUuid8)));
if (addon instanceof VoiceChat && addon.about.name.equals("VoiceChat")) {
VoiceChat voiceChat = (VoiceChat) addon;
//LabyMod.getInstance().displayMessageInChat("VoiceChat addon found!");
instance.setVoiceexist(true);
} else {
//LabyMod.getInstance().displayMessageInChat("VoiceChat addon not found!");
instance.setVoiceexist(false);
}
}
}
if (!instance.isVoiceexist()) {
LabyModAddon addon = AddonLoader.getAddonByUUID(UUID.fromString(String.valueOf(vcUuid8)));
if (addon instanceof VoiceChat && addon.about.name.equals("VoiceChat")) {
VoiceChat voiceChat = (VoiceChat) addon;
//LabyMod.getInstance().displayMessageInChat("VoiceChat addon found!");
instance.setVoiceexist(true);
} else {
//LabyMod.getInstance().displayMessageInChat("VoiceChat addon not found!");
instance.setVoiceexist(false);
}
}
}

@SubscribeEvent
public void onPrePlayerRender(RenderPlayerEvent.Pre e) {
Expand Down

0 comments on commit 9b54157

Please sign in to comment.