mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Luanti rename: builtin (#15324)
This commit is contained in:
parent
409e75b94d
commit
ad4b13a0e9
69 changed files with 77 additions and 112 deletions
|
@ -1,4 +1,4 @@
|
|||
--Minetest
|
||||
--Luanti
|
||||
--Copyright (C) 2023-24 rubenwardy
|
||||
--
|
||||
--This program is free software; you can redistribute it and/or modify
|
||||
|
@ -40,7 +40,7 @@ function get_screenshot(package, screenshot_url, level)
|
|||
return defaulttexturedir .. "no_screenshot.png"
|
||||
end
|
||||
|
||||
-- Minetest only supports png and jpg
|
||||
-- Luanti only supports png and jpg
|
||||
local ext = get_file_extension(screenshot_url)
|
||||
if ext ~= "png" and ext ~= "jpg" then
|
||||
screenshot_url = screenshot_url:sub(0, -#ext - 1) .. "png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue