1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 01:25:20 +02:00

Luanti rename: builtin (#15324)

This commit is contained in:
Wuzzy
2024-10-28 19:40:18 +01:00
committed by GitHub
parent 409e75b94d
commit ad4b13a0e9
69 changed files with 77 additions and 112 deletions

View File

@@ -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"