Quenty/NevermoreEngine

Infinite Yield Possible When Requiring Module

chrisjd20 opened this issue · 4 comments

So I just installed Nevermore using the following:

local h = game:GetService("HttpService") local e = h.HttpEnabled h.HttpEnabled = true loadstring(h:GetAsync("https://raw.githubusercontent.com/Quenty/NevermoreEngine/version2/Install.lua"))(e)

This worked great. I then attempted to use the usage example found here

I put this code at the top of a server script in ServerScriptService:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LoadCustomLibrary = require(ReplicatedStorage:WaitForChild("Nevermore"))

This resulted in the following error in Roblox Studio:

  18:40:08.835  Infinite yield possible on 'ServerScriptService:WaitForChild("Nevermore")'  -  Studio
  18:40:08.835  Stack Begin  -  Studio
  18:40:08.836  Script 'ReplicatedStorage.Nevermore', Line 76  -  Studio  -  Nevermore:76
  18:40:08.836  Stack End  -  Studio

Here is a screenshot of that helps:

image

Here is the code it says its tripping on
image

Ok so I think I fixed it by changing:

image

to:

image

You all may need to update that

fixed it in #180

Hey great thanks!