Skip to content
Snippets Groups Projects
Commit 09f6bbda authored by stuebinm's avatar stuebinm
Browse files

apparently people are using inter-assembly links internally??

lol
parent fb877d6d
Branches
No related tags found
No related merge requests found
Pipeline #13417 passed
......@@ -428,8 +428,21 @@ checkTileThing removeExits p@(Property name _value) = case name of
forbidEmptyLayer
unwrapURI (Proxy @"map") p
(\link -> do
assemblyslug <- lintConfig configAssemblyTag
case T.stripPrefix ("/@/rc3_21/"<>assemblyslug<>"/") link of
Nothing -> do
dependsOn (MapLink link)
setProperty "exitUrl" link
Just path -> case parsePath path of
OkRelPath (Path _ p frag) -> do
up <- askFileDepth
dependsOn (LocalMap (Path up p frag))
setProperty "exitUrl" path
warn "You should use relative links to your own assembly instead \
\of world://-style links (I've tried to adjust them \
\automatically for now)."
_ -> complain "There's a path I don't understand here. Perhaps try \
\asking a human?"
)
$ \path ->
let ext = getExtension path in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment