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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user