sfence
4f42b4308c
Add persistent unique identifiers for objects ( #14135 )
2025-07-09 10:40:26 +02:00
sfan5
fd0ca20ce9
Add core.get_mapgen_chunksize() ( #16289 )
2025-06-29 17:19:40 +02:00
sfan5
ec16fb33d0
Add unit tests for Lua vector reading
2025-05-28 13:29:30 +02:00
Lars Müller
d96f5e1c76
MetaDataRef: Make set_float
preserve numbers exactly ( #16090 )
2025-05-02 21:27:00 +02:00
SmallJoker
23d0fb2d3f
builtin: Return 'obj' from 'core.item_drop' ( #15880 )
...
This also includes a minor bugfix where 'itemstack' was cleared
even if the object placement failed.
2025-03-11 20:00:35 +01:00
sfan5
afb15978d9
Clean up and compress some pre-join packets ( #15881 )
2025-03-11 20:00:07 +01:00
sfan5
47c000a293
Add unittest that lints builtin JSON files
2025-03-04 19:53:01 +01:00
Andrii Nemchenko
e51221d247
Implement metadata-aware version of InvRef:remove_item() ( #15771 )
2025-02-22 16:18:48 +01:00
ROllerozxa
dd0070a6b8
Expose client version information in non-debug builds ( #15708 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
2025-02-09 18:09:07 +01:00
SFENCE
af3f696423
Code style fixes.
2025-01-21 16:29:12 +01:00
Lars Müller
7f1316236b
Silence failing raycast unit test ( #15644 )
...
The cause for the test failure is an edge case bug
in the raycast implementation (perfectly diagonal raycasts).
This is fixed by switching to a continuous random distribution
which makes it extremely unlikely that the buggy edge case occurs.
Additionally, devtest unit test failures now print their random seed
to be easier to reproduce in the future.
2025-01-08 10:56:05 +01:00
Lars Müller
f467bde6ac
Add unit test for raycasts falsely skipping nodes ( #15555 )
2025-01-05 16:32:09 +01:00
Lars Müller
88c7a54e08
Rename minetest.*
to core.*
in devtest
2024-10-28 15:57:54 +01:00
Wuzzy
4deb5b999c
DevTest: Change "Minetest" to "DevTest" ( #15326 )
2024-10-26 17:40:29 +02:00
Lars Mueller
e2ea359925
JSON: Support consistent larger max. depth of 1024
2024-10-15 12:19:49 +02:00
Lars Mueller
4c419c4020
Improve minetest.parse_json
...
Let modders handle parsing errors, get rid of two unnecessary copies.
2024-10-15 12:19:49 +02:00
sfan5
cbc741f464
Various improvements to push_json_value
2024-10-13 10:57:25 +02:00
sfan5
d2b4c27f21
Implement minetest.ipc_poll()
2024-10-11 12:00:59 +02:00
sfan5
72801d0233
Implement minetest.ipc_cas()
2024-10-11 12:00:59 +02:00
sfan5
f1a436619f
Add generic IPC mechanism between Lua envs
2024-10-11 12:00:59 +02:00
sfence
610ddaba7c
Allow detection of damage greater than HP ( #15160 )
...
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2024-09-27 21:34:52 +02:00
Gregor Parzefall
f9c0354af1
Add colorspec_to_table to the Lua API
2024-09-14 12:13:11 +02:00
grorp
5c171f6d61
Basic unittest for HP change calculation
2024-08-31 20:45:53 +02:00
Lars Müller
21ed680b10
Make getting bone overrides return the "same" euler angles ( #15007 )
2024-08-26 21:22:38 +02:00
1F616EMO~nya
98e51a0159
Clamp hotbar selection to slots that exist ( #14869 )
2024-08-12 15:35:13 +02:00
sfan5
85e717fcd1
Rework object attachment handling to fix bugs ( #14825 )
2024-08-12 15:32:18 +02:00
y5nw
8bff2f23c6
Rename minetest.register_async_metatable
to minetest.register_portable_metatable
( #14895 )
2024-08-02 00:13:25 +02:00
Lars Müller
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
cx384
7a64527db5
Fix connected_players on_shutdown ( #14739 )
2024-06-15 16:00:33 +02:00
sfence
140b9e5a5a
Allow game to specify first and last mod in mod loading order ( #14177 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
2024-06-01 16:36:20 +02:00
Lars Mueller
bd4572cfd1
Fix broken CI
2024-05-21 18:10:09 +02:00
Lars Mueller
567f85752d
Fix broken unit test
...
Also makes devtest unit test results a bit more prominent
2024-05-21 16:31:05 +02:00
Lars Mueller
5009259473
Add unit test and feature flag for override_item
2024-05-21 15:46:33 +02:00
OgelGames
05d5dc4cec
Fix InvRef
bugs and add unit tests ( #14591 )
2024-04-28 00:13:44 +02:00
y5nw
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
sfan5
91ea47fddf
Fix node callbacks unit test
2024-03-03 20:16:32 +01:00
grorp
e40417f687
Allow giving "pointabilities" to Lua raycasts ( #14390 )
2024-03-01 17:12:13 +01:00
sfan5
762fca538c
Expose SHA256 algorithm to Lua ( #14403 )
...
Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
2024-02-25 18:12:23 +01:00
SmallJoker
fa1d80b53b
MetaData: restore undocumented set_string behaviour ( #14396 )
2024-02-25 16:03:05 +01:00
sfan5
6ca214fefc
Introduce std::string_view
into wider use ( #14368 )
2024-02-17 15:35:33 +01:00
sfan5
3cac17d23e
Lua on each mapgen thread ( #13092 )
2024-02-13 22:47:30 +01:00
sfence
ceaa7e2fb0
Add API for restoring PseudoRandom and PcgRandom state ( #14123 )
2024-01-16 23:20:52 +01:00
sfan5
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
sfan5
d20f1182f2
Fix Lua PseudoRandom seeds being mangled
...
closes #14237
2024-01-14 13:17:53 +01:00
sfence
d0753dddb1
Method add_pos for object/player ( #14126 )
2024-01-01 22:48:56 +01:00
grorp
689aaf50b3
Fix unittest failure for release versions ( #14067 )
2023-12-08 21:13:33 +01:00
Thresher
352a403bd0
Optimize PNG files ( #13509 )
2023-10-09 17:13:44 +02:00
sfan5
43c9c38a28
Fix itemdef defaults not being applied in async env
2023-08-14 18:16:36 +02:00
sfan5
f6bddc4e8d
Fix registered_craftitems not populated in async env
2023-08-14 18:16:36 +02:00
sfan5
f9c881eb5a
Add two missing classes to async environment
2023-08-14 18:16:36 +02:00