Further unnecessary definition removal from defs.d.lua file, and other formatting improvements
This commit is contained in:
parent
2b17f25fca
commit
51d5f944e5
|
|
@ -161,7 +161,8 @@ return function(IsServer: boolean)
|
|||
|
||||
-- debug.profileend()
|
||||
end)
|
||||
else
|
||||
return
|
||||
end
|
||||
Remote.OnServerEvent:connect(
|
||||
function(Player, SingleFire, MultipleFire, IncomingCall)
|
||||
-- debug.profilebegin "Red.Listen.Incoming"
|
||||
|
|
@ -317,7 +318,6 @@ return function(IsServer: boolean)
|
|||
-- debug.profileend()
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
function Event.AddQueue(Queue: { any }, Call: { any })
|
||||
local Length = #Call
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ return function()
|
|||
end, function()
|
||||
for _, Item in ipairs(Bin) do
|
||||
if typeof(Item) == "Instance" then
|
||||
Item:Destroy()
|
||||
(Item :: Instance):Destroy()
|
||||
elseif typeof(Item) == "RBXScriptConnection" then
|
||||
Item:disconnect()
|
||||
(Item :: RBXScriptConnection):disconnect()
|
||||
elseif typeof(Item) == "function" then
|
||||
Spawn(Item)
|
||||
Spawn(Item :: () -> ...any)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ Clock.new = Clock.Clock
|
|||
|
||||
function Clock.Pause(self: Clock)
|
||||
if self.Connection then
|
||||
self.Connection:Disconnect()
|
||||
self.Connection:disconnect()
|
||||
end
|
||||
end
|
||||
|
||||
function Clock.Resume(self: Clock)
|
||||
if self.Connection.Connected then
|
||||
if self.Connection.connected then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
--!strict
|
||||
-- A basic polyfill for the typeof function
|
||||
|
||||
return function(value)
|
||||
return function(value: any): string
|
||||
local basicType = type(value)
|
||||
|
||||
if
|
||||
|
|
|
|||
1374
defs.d.lua
1374
defs.d.lua
File diff suppressed because one or more lines are too long
|
|
@ -52,7 +52,7 @@ end)
|
|||
-- end)
|
||||
ScriptContext.ScriptsDisabled = true
|
||||
|
||||
-- game:SetPlaceID(nil, false)
|
||||
-- game:SetPlaceId(nil, false)
|
||||
ChangeHistoryService:SetEnabled(false)
|
||||
|
||||
if url ~= nil then
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ local Visit = game:GetService "Visit"
|
|||
local player, connectionFailed
|
||||
|
||||
pcall(function()
|
||||
game:SetPlaceID(_PLACE_ID, false)
|
||||
game:SetPlaceId(_PLACE_ID, false)
|
||||
end)
|
||||
|
||||
-- if we are on a touch device, no blocking http calls allowed! This can cause a crash on iOS
|
||||
|
|
@ -22,9 +22,6 @@ settings()["Game Options"].CollisionSoundEnabled = true
|
|||
pcall(function()
|
||||
settings().Rendering.EnableFRM = true
|
||||
end)
|
||||
pcall(function()
|
||||
settings().Physics.Is30FpsThrottleEnabled = false
|
||||
end)
|
||||
pcall(function()
|
||||
settings()["Task Scheduler"].PriorityMethod =
|
||||
Enum.PriorityMethod.AccumulatedError
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ local player
|
|||
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
||||
|
||||
pcall(function()
|
||||
return game:SetPlaceID(_PLACE_ID)
|
||||
game:SetPlaceId(_PLACE_ID)
|
||||
end)
|
||||
|
||||
local message = Instance.new "Message"
|
||||
|
|
|
|||
Loading…
Reference in New Issue