public static bool IsWorldBeingPlayed() { if (!LoadHelpers.IsWorldLoaded()) { return(false); } var mymod = HamstarHelpersMod.Instance; if (Main.netMode == 0 || Main.netMode == 1) // Client or single { if (!mymod.LoadHelpers.IsClientPlaying) { return(false); } var myplayer = Main.LocalPlayer.GetModPlayer <HamstarHelpersPlayer>(); return(myplayer.Logic.IsSynced()); } else // Server { if (!mymod.LoadHelpers.HasServerBegunHavingPlayers) { return(false); } return(true); } }
public static bool IsWorldLoaded() { return(LoadHelpers.IsWorldLoaded()); }