Commit Graph

972 Commits (master)

Author SHA1 Message Date
luk3yx c658140b4b
Add `string.buffer` to Lua environment (if it exists) 2022-08-06 23:00:45 +02:00
luk3yx 17f710bfd5 Send SSCSMs in singleplayer and add more APIs to SSCSM sandbox (#72) 2022-08-05 20:53:08 +02:00
AFCMS fdd2efbbbe Add `minetest.settings` to CSM API and allow CSMs to provide `settingtypes.txt` (#12131)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-08-04 11:39:06 +12:00
sfan5 735b01bd5f Protect a few more settings from being set from mods
Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
2022-08-03 19:34:20 +12:00
sfan5 36883505da Protect mg_name and mg_flags from being set by Lua (#11010) 2022-08-03 19:34:15 +12:00
luk3yx fb78a8a0cd
Add update reminder (#49)
Co-authored-by: Maksym <Maksym48@pm.me>
Co-authored-by: ubulem <berkut87@gmail.com>
2022-08-02 09:48:01 +02:00
luk3yx e22b748ce9 Only log large invalid JSON strings when built in debug mode 2022-07-22 19:04:49 +12:00
luk3yx 357d3aaf8e
Make /setspawn world specific (#67) 2022-07-06 22:15:27 +03:00
Maksym 3991e90bbc Update MainMenu and replace tabs on buttons (#61)
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-06-17 20:39:48 +03:00
sfan5 0effd2e7a8 Clean up some auth packet handling related code 2022-05-08 17:57:02 +12:00
sfan5 cd702ab664 Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)
This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.
2022-05-03 09:51:49 +12:00
luk3yx f91eca1e5e
Add platform information to get_player_information (#50) 2022-04-27 09:24:40 +03:00
Maksim 98f2fc92df Minor fixes and changes 2022-04-10 13:20:59 +02:00
Maksim 3b200d6e48 Update MainMenu look 2022-03-08 10:23:00 +01:00
Bektur db273c4645 Android: latest bugfixes and features (#39)
Co-authored-by: Maksim <MoNTE48@mail.ua>
2022-02-20 23:59:43 +01:00
sfan5 d08faa6e5d Validate staticdata and object property length limits
Some games provide users with enough freedom to create items
with metadata longer than 64KB, preventing this from causing
issues is on them but we'll still do the minimum not to abort
the server if this happens.
2022-02-07 09:25:35 +13:00
luk3yx eb535064ba Add bit library to environment (with LuaJIT) 2022-01-11 10:33:52 +13:00
luk3yx 952471c8f8 Add ChaCha library 2022-01-09 13:52:31 +13:00
MoNTE48 cca13417fe iOS: forced saving settings when connecting to the game 2021-12-04 23:47:06 +01:00
luk3yx 1a13324379 Add new functions 2021-12-04 23:47:06 +01:00
sfence d40a598fe4 Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)
This check can be used by ABM to reduce CPU usage.
2021-11-03 23:49:48 +01:00
luk3yx a3e3f12900 Log approximate RAM usage of mods during startup (with --info) 2021-09-13 12:58:34 +02:00
luk3yx 8398d7be17 Add node name to deprecation warnings 2021-08-02 08:33:44 +12:00
luk3yx 8f0dd004f1 Add minetest.load_translation to the main menu API 2021-07-25 12:06:24 +02:00
luk3yx c0f4228096 Add core.sleep_ms to async main menu API 2021-07-25 12:06:24 +02:00
luk3yx 1aabc2ca14 Merge tag '5.4.1' into main
5.4.1
2021-06-08 10:37:38 +12:00
HybridDog 4fbfe9443b Add minetest.get_artificial_light and minetest.get_natural_light (#5680)
Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday).

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-05-10 13:40:25 +02:00
sfan5 e5f802ab5c Fix server favorites not saving when client/serverlist/ doesn't exist already (#11152) 2021-04-05 16:02:32 +02:00
rubenwardy f85e9ab925
Add nametag background setting and object property (#10937) 2021-02-17 19:51:28 +00:00
rubenwardy a8f6befd39
Fix short_description fallback order (#10943) 2021-02-17 18:53:44 +00:00
Vitaliy ea2ddf2be7 Add Lua UTF-8 lib (#4)
Co-authored-by: MoNTE48 <MoNTE48@mail.ua>
2021-02-14 09:58:28 +01:00
MoNTE48 2aa0400bd2 Backport MultiCraft Engine changes 2021-02-14 09:58:28 +01:00
rubenwardy 3a8c37181a
Use consistent temp folder path (#10892) 2021-02-07 15:27:24 +00:00
rubenwardy fbb9ef3818
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
2021-02-06 13:46:45 +01:00
sfan5 c834d2ab25 Drop wide/narrow conversion functions
The only valid usecase for these is interfacing with OS APIs
that want a locale/OS-specific multibyte encoding.
But they weren't used for that anywhere, instead UTF-8 is pretty
much assumed when it comes to that.
Since these are only a potential source of bugs and do not fulfil
their purpose at all, drop them entirely.
2021-02-02 20:46:08 +01:00
sfan5 40ad976753 Revise dynamic_add_media API to better accomodate future changes 2021-02-01 23:00:13 +01:00
sfan5 a01a02f7a1 Preserve immortal group for players when damage is disabled 2021-01-31 20:38:12 +01:00
sfan5 112a6adb10
Cache client IP in RemoteClient so it can always be retrieved (#10887)
specifically: after the peer has already disappeared
2021-01-31 20:36:47 +01:00
rubenwardy 6e0e0324a4
Fix minetest.dig_node returning true when node isn't diggable (#10890) 2021-01-31 18:49:51 +00:00
sfan5 83229921e5 Rework use_texture_alpha to provide three opaque/clip/blend modes
The change that turns nodeboxes and meshes opaque when possible is kept,
as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29 17:34:41 +01:00
sfan5 edd8c3c664 Drop never documented 'alpha' property from nodedef
Includes minimal support code for practical reasons.
We'll need it for a slightly different purpose next commit.
2021-01-29 17:34:41 +01:00
SmallJoker 2760371d8e Settings: Purge getDefault, clean FontEngine 2021-01-29 17:32:35 +01:00
SmallJoker 37a05ec8d6 Settings: Proper priority hierarchy
Remove old defaults system
Introduce priority-based fallback list
Use new functions for map_meta special functions
Change groups to use end tags

Unittest changes:
 * Adapt unittest to the new code
 * Compare Settings objects
2021-01-29 17:32:35 +01:00
rubenwardy 4c76239818
Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
rubenwardy 67aa75d444
Use JSON for favorites, move server list code to Lua (#10085)
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-22 15:08:57 +00:00
rubenwardy 4fcd000e20
MgOre: Fix invalid field polymorphism (#10846) 2021-01-21 19:08:06 +00:00
Zughy 45ccfe26fb
Removed some obsolete code (#10562)
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21 18:17:09 +00:00
Zughy ea5d6312c1
ObjectRef: fix some v3f checks (#10602) 2021-01-21 18:37:38 +01:00
JDiaz 08ee9794fb
Implement on_rightclickplayer callback (#10775)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
rubenwardy edd0836011
ContentDB: Add overwrite dialog when content is already installed (#10768) 2021-01-04 15:18:31 +00:00