1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-06 18:00:21 +02:00
Commit Graph

1185 Commits

Author SHA1 Message Date
e734b3f0d8 Fix core.get_node_or_nil in emerge env
"ignore" does not mean unloaded, we have to properly check it.
2024-03-03 20:16:32 +01:00
DS
d4d4712361 Implement get_node with a get_node_raw (#14384)
Add /bench_bulk_get_node
Considerably improves the execution speed of core.get_node
2024-03-03 15:53:23 +01:00
e40417f687 Allow giving "pointabilities" to Lua raycasts (#14390) 2024-03-01 17:12:13 +01:00
f4eba3bfba Add support for ContentDB package translation (#14410) 2024-02-25 22:09:52 +00:00
762fca538c Expose SHA256 algorithm to Lua (#14403)
Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
2024-02-25 18:12:23 +01:00
fa1d80b53b MetaData: restore undocumented set_string behaviour (#14396) 2024-02-25 16:03:05 +01:00
b4be483d3e Add support for translating content titles and descriptions (#12208) 2024-02-24 19:13:07 +00:00
492aab20fe Fix compiler warnings 2024-02-24 12:39:12 +01:00
34286d77c7 Allow toggling touchscreen mode at runtime (#14075)
Signed-off-by: David Heidelberg <david@ixit.cz>
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2024-02-22 15:44:49 +00:00
e3cc26cb7c Irrlicht support changes (#14383) 2024-02-19 21:14:47 +01:00
6ca214fefc Introduce std::string_view into wider use (#14368) 2024-02-17 15:35:33 +01:00
933432e62d Annotate Lua packer with more comments 2024-02-16 12:34:40 +01:00
ce97210eb1 Refactor how script api reads current mod name
This is to prevent future mistakes and make it clearer whether
the mod name can be trusted depending on how it is retrieved.
2024-02-15 11:06:21 +01:00
cb5fa56e17 Remove insecure environment from async and emerge environment 2024-02-15 11:06:21 +01:00
3cac17d23e Lua on each mapgen thread (#13092) 2024-02-13 22:47:30 +01:00
d4b107e2e8 Enable dynamic_add_media to take the file data instead of a path 2024-02-13 22:44:10 +01:00
c90ebad46b Allow specifying name for dynamic media files 2024-02-13 22:44:10 +01:00
af69d4f7a9 Allow dynamic_add_media at mod load time 2024-02-13 22:44:10 +01:00
a14320fc44 Improve deprecation error messages 2024-02-12 22:58:26 +01:00
eb52a149a0 Enable IPO/LTO by default except for debug builds (#14198)
Test case:

```
$ cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release -DBUILD_SERVER=TRUE -DENABLE_TOUCH=FALSE

         minetest minetestserver
W/o LTO:      13M           7.3M
W/  LTO:      11M           5.9M
difference:   15%            19%
```

Also fixes various compiler warnings resulting from compilation using LTO.

---------

Signed-off-by: David Heidelberg <david@ixit.cz>
2024-02-09 00:01:12 +01:00
adaa4cc2f3 Move hard coded minimap to builtin (#14071) 2024-02-07 20:13:23 +01:00
f2b99332d9 Add Lua API function to resolve node/collision/selection boxes (#13964) 2024-02-06 20:45:16 +01:00
e7dbd325d2 RemotePlayer: make peer ID always reflect the validity of PlayerSAO (#14317)
Upon disconnect, RemotePlayer still had a peer ID assigned even though
the PlayerSAO object was maked as gone (for removal). This commit makes
that the following always holds true:

	(!sao || sao->isGone()) === (peer_id == PEER_ID_INEXISTENT)
2024-02-02 22:13:24 +01:00
176e674a51 Add wear bar color API (#13328)
---------

Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-02-02 21:21:00 +01:00
5dbc1d4c08 Move some files to src/server/ 2024-01-27 10:33:32 +01:00
9e3a11534f Allow fog color to be overriden properly (#14296) 2024-01-23 22:33:33 +01:00
5958714309 Tool specific pointing and blocking pointable type (#13992) 2024-01-22 18:27:08 +01:00
fb461d21a5 Fix waypoint precision wraparound, add bounds check 2024-01-21 21:00:09 +01:00
404a063fdf Touchscreen: Allow mods to swap the meaning of short and long taps (punch with single tap) (#14087)
This works through a new field "touch_interaction" in item definitions.
The two most important use cases are:
 - Punching players/entities with short tap instead of long tap (enabled by default)
 - Making items usable that require holding the place button (e.g. bows and shields in MC-like games)
2024-01-21 17:44:08 +01:00
2ea8d9ca11 Fix out of range enum casts in deSerialize functions (#14090) 2024-01-17 20:05:46 +01:00
08ee6d8d4b Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode (#11073) 2024-01-17 17:47:06 +01:00
ceaa7e2fb0 Add API for restoring PseudoRandom and PcgRandom state (#14123) 2024-01-16 23:20:52 +01:00
92c55c27cf Add function to get all HUD elements (#14042) 2024-01-14 17:46:29 +01:00
1ba26d67bd Remove excessive includes from porting.h 2024-01-14 13:17:53 +01:00
e824e9023f Simplify LuaPseudoRandom::l_next and fix docs
Also extends the allowed range on the C++ side. This has no side-effects.
2024-01-14 13:17:53 +01:00
d20f1182f2 Fix Lua PseudoRandom seeds being mangled
closes #14237
2024-01-14 13:17:53 +01:00
d0753dddb1 Method add_pos for object/player (#14126) 2024-01-01 22:48:56 +01:00
467d3a8c62 Rename hud_elem_type to type (#14065) 2023-12-29 21:51:02 +01:00
5405a558fd Fix minor issue with log_deprecated() 2023-12-25 19:47:34 +01:00
961652c2e9 Address some clang-tidy warnings 2023-12-25 10:07:28 +01:00
e0d4a9d575 Make volumetric light effect strength server controllable
- Make volumetric light effect strength server controllable
- Separate volumetric and bloom shader pipeline
- Require bloom to be enable, scale godrays with bloom
2023-12-21 16:21:01 -08:00
cad8e895f2 Fix set_bone_position regression (error on passing none) 2023-12-21 18:55:12 +01:00
0d61598d8a Extend bone override capabilities (#12388) 2023-12-20 21:21:53 +01:00
91ba02449b Add touch_controls boolean to get_player_window_information() (#14092) 2023-12-17 20:47:07 +01:00
da832a295e Delete clang-format files and comments (#14079) 2023-12-15 10:23:44 +01:00
585e6aa80b Clamp values in read_ARGB8 2023-11-19 20:45:18 +01:00
4ee32c5441 Add package update detection on Content tab (#13807) 2023-10-28 17:33:44 +01:00
2fbf5f4250 CSM: Fix duplicate player names (#13910) 2023-10-22 15:31:29 +02:00
DS
11ec75c2ad ActiveObjectMgr fixes (#13560) 2023-10-09 17:13:04 +02:00
33cc29bbda Allow setting custom third person front view camera offset (#13686)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2023-10-02 13:44:03 +02:00