mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-27 06:12:57 +00:00
Fix Forge 1.12.2 HUD initialization
This commit is contained in:
1 file changed
+6
@@ -18,6 +18,7 @@ import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||
import net.minecraftforge.client.event.sound.PlaySoundEvent;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.common.event.FMLLoadCompleteEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
||||
@@ -71,6 +72,11 @@ public class AllMusicClient implements AllMusicBridge {
|
||||
}
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void loadComplete(final FMLLoadCompleteEvent event) {
|
||||
AllMusicCore.renderInit();
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSound(final PlaySoundEvent e) {
|
||||
if (!AllMusicCore.isPlay()) return;
|
||||
|
||||
Reference in new issue
Block a user