fix AE Follow craft disconnect the client sometime (#1101)

This commit is contained in:
lc-1337 authored and GitHub committed 2026-02-28 11:57:49 +01:00
1 parent 3b5c878812
commit 67d556ffa6
2 files changed
+7 -2

No files matched your search

@@ -14,7 +14,7 @@ import cpw.mods.fml.common.gameevent.TickEvent;
*/
public class NotificationManager {
public static GuiNotification guiNotification;
private static GuiNotification guiNotification;
@SubscribeEvent
public void renderTick(TickEvent.RenderTickEvent event) {
@@ -25,4 +25,9 @@ public class NotificationManager {
guiNotification.updateNotificationWindow();
}
}
public static GuiNotification getGuiNotification() {
if (guiNotification == null) guiNotification = new GuiNotification(Minecraft.getMinecraft());
return guiNotification;
}
}
@@ -65,7 +65,7 @@ public class PacketCraftingCompleteNotification extends AppEngPacket {
this.stack.getDisplayName(),
elapsedTimeText);
NotificationManager.guiNotification.queueNotification(
NotificationManager.getGuiNotification().queueNotification(
new Notification(
this.stack,
StatCollector.translateToLocal("chat.appliedenergistics2.CraftComplete"),