mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-14 01:14:11 +00:00
fix AE Follow craft disconnect the client sometime (#1101)
This commit is contained in:
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"),
|
||||
|
||||
Reference in new issue
Block a user