Skip to content

Commit

Permalink
fix(socket): initial status packet not being sent
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Oct 2, 2019
1 parent 15c02ce commit 819c7ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=0.3.9
mod_version=0.3.11

minecraft_version=1.12.2
forge_version=14.23.3.2655
Expand Down
Expand Up @@ -25,6 +25,7 @@

import java.io.File;

@Mod.EventBusSubscriber
@Mod(modid = TwitchSpawn.MOD_ID, name = "TwitchSpawn", version = TwitchSpawn.MOD_VERSION)
public class TwitchSpawn {

Expand Down Expand Up @@ -65,14 +66,6 @@ public void postInit(final FMLPostInitializationEvent event) {
LOGGER.info("postInit()");
}

@SubscribeEvent
public void registerSounds(RegistryEvent.Register<SoundEvent> event) {
// TODO: Find answer; Is this redundant? (See https://mcforge.readthedocs.io/en/latest/effects/sounds/)
event.getRegistry().register(new SoundEvent(new ResourceLocation(TwitchSpawn.MOD_ID, "pop_in")));
event.getRegistry().register(new SoundEvent(new ResourceLocation(TwitchSpawn.MOD_ID, "pop_out")));
LOGGER.info("registerSounds()");
}

@Mod.EventHandler
public void onServerAboutToStart(FMLServerAboutToStartEvent event) {
SERVER = event.getServer();
Expand All @@ -99,7 +92,7 @@ public void onServerStopping(FMLServerStoppingEvent event) {
}

@SubscribeEvent
public void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {
public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {
EntityPlayerMP entity = (EntityPlayerMP) event.player;

String translationKey = TRACE_MANAGER.isRunning() ?
Expand Down

0 comments on commit 819c7ec

Please sign in to comment.