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

1335 Commits

Author SHA1 Message Date
b8b99d5cf1 Use std::string_view in logging code 2024-09-02 16:09:14 +02:00
52376fd87a Add hotbar Lua HUD element and replace hardcoded hotbar 2024-08-31 16:04:14 +02:00
21ed680b10 Make getting bone overrides return the "same" euler angles (#15007) 2024-08-26 21:22:38 +02:00
ab7af5d15a Fix trailing whitespace from #14179 2024-08-21 20:30:58 +02:00
66b3db3601 Fix mods folder being read twice with RUN_IN_PLACE=1 (#15024) 2024-08-21 20:25:58 +02:00
f2c66b9ceb Add possibility to easier override HP and breath engine logic by Lua (#14179)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-08-21 20:24:43 +02:00
9ccd9d341f Revert empty form name deprecation warnings 2024-08-20 11:49:41 +02:00
ec115ffe2a Make SecureRandom non-failable 2024-08-20 11:49:15 +02:00
03e600a721 Fix whitespaces 2024-08-17 21:02:54 +02:00
j-r
1fb49e9ca7 Add shared mods path to get_modpaths
...because the documentation implies it should be.
2024-08-17 19:48:40 +02:00
d3ca269c79 Add minetest.is_valid_player_name utility 2024-08-16 22:13:16 +02:00
6874c358ea Allow managing object observers
-----

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2024-08-16 22:13:16 +02:00
cc8e7a569e Switch player names to std::string 2024-08-16 22:13:16 +02:00
98e51a0159 Clamp hotbar selection to slots that exist (#14869) 2024-08-12 15:35:13 +02:00
85e717fcd1 Rework object attachment handling to fix bugs (#14825) 2024-08-12 15:32:18 +02:00
e236ad8348 Lua API: fix OOB array access in find_nodes_near (#14948) 2024-08-11 20:21:12 +02:00
02f40e5b0d Fix blockseed for on_generated in mapgen env 2024-07-22 16:31:46 +02:00
8ed55b3aff Help modders deal with object invalidation (#14769)
* Skip invalid objects in raycasts
* Add `ObjectRef:is_valid` method
* Add object inside radius / area iterators which skip invalid objects
* Update docs to clarify object invalidation and how to deal with it

---------

Co-authored-by: sfan5 <sfan5@live.de>
2024-07-01 20:50:38 +02:00
321b217feb Log node/ore name when detecting deprecated fields (#14794) 2024-07-01 17:26:15 +02:00
b7e886a740 Rename sha256 header
fixes #14710
2024-06-10 18:49:43 +02:00
cdbbac5b6d Move sha256.c to lib/
Precompiled headers don't work if we're not a pure C++ project.
2024-05-27 17:12:39 +02:00
8972e829f2 Restore vector type check (#14663) 2024-05-20 20:36:44 +02:00
39fd9b93c3 Introduce proper error handling for file streams 2024-05-14 18:33:08 +02:00
af8cb63292 Add object's own position for each collision to moveresult (#14608) 2024-05-05 13:28:59 +02:00
70bddcf318 Fix wrong name for bone override interpolation field 2024-05-04 02:09:35 +02:00
c24a04d246 Optimize pushing collision data for entity on_step
Since this is fixed overhead for every entity, this is important to optimize.
This optimizes one very common case.

before:
  push_collision_move_result [us] _____________ 64512x   3.562

after:
  push_collision_move_result [us] _____________ 72636x   0.831
2024-05-03 16:28:29 +02:00
2efd0996e6 Document empty string as form name (#14601) 2024-04-30 13:50:31 +02:00
ac4f13e78f Add minetest.get_gen_notify to mapgen env (#14568) 2024-04-30 13:50:18 +02:00
2bdd0a6bdb Add physics overrides for walk speed and Fast Mode (#14475)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
2024-04-30 13:50:01 +02:00
72cb4e9bea Allow nil puncher in object:punch (#14319) 2024-04-28 17:55:04 +02:00
df4c9e2903 Revert "Clean up some getServer() unsafety"
Turned out to not be a good idea.
This reverts commit 58eccc7a2a.
2024-04-28 00:24:22 +02:00
05d5dc4cec Fix InvRef bugs and add unit tests (#14591) 2024-04-28 00:13:44 +02:00
58eccc7a2a Clean up some getServer() unsafety 2024-04-23 19:03:35 +02:00
7e4462e0ac Better handling of temporary folders 2024-04-06 12:10:21 +02:00
2d8e4df7bc Allow optional actor ObjectRef value in node interaction calls (#14505) 2024-04-05 13:00:50 +02:00
e79587c934 Add shorthand form for touch_interaction 2024-03-30 11:40:50 +01:00
517f1602aa Re-add "long tap to punch" as a client-side setting 2024-03-30 11:40:50 +01:00
d1a1aed23e Reduce unnecessary include in serialize.h 2024-03-30 11:07:02 +01:00
6c6e48f006 Move values the mainmenu caches to dedicated files (#14433) 2024-03-30 11:06:28 +01:00
d53ef90a73 Remove Irrlicht versioning 2024-03-27 20:55:48 +01:00
b487341c32 Deprecate writing to mod directories (#14486) 2024-03-27 18:32:05 +00:00
6c4a110679 Add world-independent storage directory for mods (#12315)
Fixes #4821
2024-03-24 17:18:58 +00:00
bc4ab8b99e General code refactoring/improvements in server, treegen and connection 2024-03-20 16:37:32 +01:00
e3b9828f24 Add unit tests for SAO load / unload behaviour 2024-03-17 15:55:24 +01:00
61a5733692 Unittest: Add inventory callback tests 2024-03-16 20:14:05 +01:00
60810c2d37 Add L-system trees as decorations (#14355) 2024-03-12 20:10:28 +01:00
f07e1026ac Allow sync HTTP fetches to be interrupted to fix hanging (#14412)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2024-03-12 20:09:43 +01:00
32f68f35cf Avoid packets getting sent to disconnected players (#14444)
Many functions expect RemotePlayer to have a valid peer ID,
this however is not the case immediately after disconnecting
where the object is still alive and pending for removal.

ServerEnvironment::getPlayer(const char *, bool) now only
returns players that are connected unless forced to.
2024-03-10 13:24:35 +01:00
fc80f65a6d Try to preserve metatable when exchanging data with the async env (#14369)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-03-06 18:04:49 +01:00
c524c52baa Fix some common SAO methods to not generate useless update packets 2024-03-06 18:03:57 +01:00