mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Use SPDX-License-Identifiers in builtin
This commit is contained in:
		
				
					committed by
					
						
						Lars Müller
					
				
			
			
				
	
			
			
			
						parent
						
							e1143783e5
						
					
				
				
					commit
					c0d10b24a4
				
			@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2013 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2013 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
-- TODO improve doc                                                           --
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2022 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2022 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local make = {}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2015 PilzAdam
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2015 PilzAdam
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local checkboxes = {}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2022 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2022 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local path = core.get_builtin_path() .. "common" .. DIR_DELIM .. "settings" .. DIR_DELIM
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2022 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2022 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local path = core.get_builtin_path() .. "common" .. DIR_DELIM .. "settings" .. DIR_DELIM
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2015 PilzAdam
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2015 PilzAdam
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
settingtypes = {}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,20 +1,7 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2021-2 x2048
 | 
			
		||||
--Copyright (C) 2022-3 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2021-2 x2048
 | 
			
		||||
-- Copyright (C) 2022-3 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local shadow_levels_labels = {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,20 +1,7 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--Copyright (C) 2023 Gregor Parzefall
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- Copyright (C) 2023 Gregor Parzefall
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local BASE_SPACING = 0.1
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--this program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local function dialog_event_handler(self,event)
 | 
			
		||||
	if self.user_eventhandler == nil or
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
ui = {}
 | 
			
		||||
ui.childlist = {}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
-- Global menu data
 | 
			
		||||
menudata = {}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
if not core.get_http_api then
 | 
			
		||||
	return
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2018-20 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2018-20 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
if not core.get_http_api then
 | 
			
		||||
	function create_contentdb_dlg()
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local function is_still_visible(dlg)
 | 
			
		||||
	local this = ui.find_by_name("install_dialog")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
function get_formspec(data)
 | 
			
		||||
	local package = data.package
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2018-24 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local function get_info_formspec(size, padding, text)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2023 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2023 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local path = core.get_mainmenu_path() .. DIR_DELIM .. "content"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2013 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2013 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
local function get_last_folder(text,count)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2023-24 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2023-24 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Screenshot
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2022 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2022 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local mods_dir = "/tmp/.minetest/mods"
 | 
			
		||||
local games_dir = "/tmp/.minetest/games"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2023 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2023 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
update_detector = {}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2013 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2013 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local function table_to_flags(ftable)
 | 
			
		||||
	-- Convert e.g. { jungles = true, caves = false } to "jungles,nocaves"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local function delete_world_formspec(dialogdata)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2022 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2022 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2023 Gregor Parzefall
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2023 Gregor Parzefall
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
---- IMPORTANT ----
 | 
			
		||||
-- This whole file can be removed after a while.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2013 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2013 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mm_game_theme = {}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
MAIN_TAB_W = 15.5
 | 
			
		||||
MAIN_TAB_H = 7.1
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2020 rubenwardy
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2020 rubenwardy
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
serverlistmgr = {
 | 
			
		||||
	-- continent code we detected for ourselves
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2013 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2013 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local function prepare_credits(dest, source)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,20 +1,7 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--Copyright (C) 2018 rubenwardy <rw@rubenwardy.com>
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- Copyright (C) 2018 rubenwardy <rw@rubenwardy.com>
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local function get_content_icons(packages_with_updates)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local current_game, singleplayer_refresh_gamebar
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2014 sapier
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2014 sapier
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local function get_sorted_servers()
 | 
			
		||||
	local servers = {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2016 T4im
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2016 T4im
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local S = core.get_translator("__builtin")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2016 T4im
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2016 T4im
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local format, pairs, type = string.format, pairs, type
 | 
			
		||||
local core, get_current_modname = core, core.get_current_modname
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2016 T4im
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2016 T4im
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
 | 
			
		||||
local S = core.get_translator("__builtin")
 | 
			
		||||
-- Note: In this file, only messages are translated
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,6 @@
 | 
			
		||||
--Luanti
 | 
			
		||||
--Copyright (C) 2016 T4im
 | 
			
		||||
--
 | 
			
		||||
--This program is free software; you can redistribute it and/or modify
 | 
			
		||||
--it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
--the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
--(at your option) any later version.
 | 
			
		||||
--
 | 
			
		||||
--This program is distributed in the hope that it will be useful,
 | 
			
		||||
--but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
--GNU Lesser General Public License for more details.
 | 
			
		||||
--
 | 
			
		||||
--You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
--with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
-- Luanti
 | 
			
		||||
-- Copyright (C) 2016 T4im
 | 
			
		||||
-- SPDX-License-Identifier: LGPL-2.1-or-later
 | 
			
		||||
local setmetatable = setmetatable
 | 
			
		||||
local pairs, format = pairs, string.format
 | 
			
		||||
local min, max, huge = math.min, math.max, math.huge
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user