ah_sce_unpacked/unpacked/BlockSquare Physics Detector b300d8.ttslua
2024-02-04 10:51:51 -05:00

56 lines
1.7 KiB
Plaintext

-- Bundled by luabundle {"version":"1.6.0"}
local __bundle_require, __bundle_loaded, __bundle_register, __bundle_modules = (function(superRequire)
local loadingPlaceholder = {[{}] = true}
local register
local modules = {}
local require
local loaded = {}
register = function(name, body)
if not modules[name] then
modules[name] = body
end
end
require = function(name)
local loadedModule = loaded[name]
if loadedModule then
if loadedModule == loadingPlaceholder then
return nil
end
else
if not modules[name] then
if not superRequire then
local identifier = type(name) == 'string' and '\"' .. name .. '\"' or tostring(name)
error('Tried to require ' .. identifier .. ', but no such module has been registered')
else
return superRequire(name)
end
end
loaded[name] = loadingPlaceholder
loadedModule = modules[name](require, loaded, register, modules)
loaded[name] = loadedModule
end
return loadedModule
end
return require, loaded, register, modules
end)(nil)
__bundle_register("__root", function(require, _LOADED, __bundle_register, __bundle_modules)
require("core/PhysicsDetector")
end)
__bundle_register("core/PhysicsDetector", function(require, _LOADED, __bundle_register, __bundle_modules)
-- will notify the user to enable physics if it appears to not be fully enabled
-- this event should only fire if physics aren't fully enabled
function onCollisionExit()
broadcastToAll("Physics disabled? Check chat log", "Orange")
printToAll("It seems like you don't have 'Physics' fully enabled. From the top menu bar, open Options > Physics and select 'Full' to experience this mod with all features.")
end
end)
return __bundle_require("__root")