0fc97a1483
Use a Lua error handler that calls tostring ( #11913 )
2022-12-15 07:37:49 -05:00
1f3b5e553b
Fix plantlike_rooted
world-aligned node base textures ( #12994 )
...
Co-authored-by: Wuzzy <Wuzzy@disroot.org >
2022-12-12 08:45:09 -05:00
37386b9c3c
Expose dtime_s to LBM handler
2022-12-04 12:35:14 +01:00
b3ffc4b327
Add minetest.get_mapgen_edges
( #12999 )
2022-12-03 10:40:46 -05:00
d0a118f5b1
Add minetest.get_game_info
and allow reading game.conf
( #12989 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-11-28 07:21:43 -05:00
7c21347a40
Rename "mod metadata" to "mod storage" everywhere
2022-11-24 17:58:25 -05:00
386bfcda2b
Fix reading schematics after their resolution ( #12985 )
2022-11-23 11:53:21 -05:00
6bf662cb9e
set_nametag_attributes: don't reset nametags if text param is not touched
...
fixes #12901
2022-11-15 16:46:26 +01:00
cd8a7fe472
Add MetaDataRef:get_keys ( #12841 )
2022-11-15 16:45:12 +01:00
88b04eadc9
Fix get_tool_wear_after_use for one use (insta-break) ( #12945 )
2022-11-09 11:58:53 -05:00
d1b80b462e
Fix typos and en_US/en_GB inconsistency in various files ( #12902 )
2022-11-09 11:57:19 -05:00
077627181e
Allow rotating entity selectionboxes ( #12379 )
2022-10-30 16:53:14 +01:00
dafdb3edb4
Check for falling float
nodes in liquid transform ( #12862 )
2022-10-18 18:03:05 -04:00
b38ffdec27
Implement vector and node conversion in Lua ( #12609 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-10-18 18:01:44 -04:00
87051fca26
Take geographic distance into account for server list ordering ( #12790 )
2022-10-17 07:56:28 -04:00
cb725a4555
Speed up find_nodes_in_area ( #12845 )
2022-10-13 09:35:19 -04:00
f7ae70c3d9
Use enum to define custom registry indices
2022-10-13 08:46:16 -04:00
9676364c1f
Optimize lighting calculation ( #12797 )
2022-10-09 10:50:26 -04:00
440d966b93
add an 'equals' method to ItemStack and compatibility w/ lua '==' ( #12771 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com >
Co-authored-by: sfan5 <sfan5@live.de >
2022-10-09 08:06:09 -04:00
7632af3c73
Consolidate API object code ( #12728 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-10-04 08:31:36 -04:00
525fc3833c
Implement tool use sounds
2022-09-30 14:02:14 +02:00
b1233056b7
Add zstd compression support ( #12515 )
2022-09-28 09:06:14 -04:00
f4a01f3a5d
Avoid duplication of mod metadata in memory ( #12562 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-09-26 17:03:43 -04:00
03428d9825
Modify PUC Lua to wrap C++ exceptions ( #12445 )
2022-09-26 07:23:48 -04:00
6f5a68b7f7
Allow getmetatable in CSM ( #12776 )
2022-09-18 17:32:18 +02:00
1d04903c19
Add paramtype2s for 4 horizontal rotations and 64 colors ( #11431 )
...
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits.
It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir).
color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-16 13:18:55 +02:00
bc3dccca5c
Mainmenu: Properly sort mods and games ( #12758 )
...
This also removes trivial and unused pkgmgr functions
Fixes a bug caused by sorting in 2133fc8
2022-09-12 19:24:54 +02:00
fe13f9dfd1
Fix potential use-after-free with item metadata ( #12729 )
...
This fixes a use-after-free bug in the case where itemstack metadata is accessed after the itemstack has been garbage-collected.
2022-09-11 19:28:37 +02:00
038da00e79
Code optimizations / refactor ( #12704 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com >
Co-authored-by: sfan5 <sfan5@live.de >
2022-09-06 11:21:09 +01:00
0e439b2fa3
Check hp_max > 0 for entities ( #12667 )
2022-08-13 15:35:41 +01:00
ab8dfb45b4
Allow buffer argument to VoxelManip:get_light_data ( #12682 )
2022-08-13 08:53:47 +02:00
c8ee755c05
Physics overrides: Move values to a common struct ( #12591 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-08-12 10:17:02 +01:00
bcc56803d7
Fix crash when stars are reset
2022-08-10 18:03:57 +02:00
a81259d19a
Run Minetest update checker on startup ( #7629 )
...
This feature is enabled by default for non-Android release builds. Package
maintainers may use -DENABLE_UPDATE_CHECKER=0 to disable it.
Co-authored-by: rubenwardy <rw@rubenwardy.com >
Co-authored-by: sfan5 <sfan5@live.de >
2022-08-02 21:34:17 +02:00
6ec6acc539
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-02 11:58:08 +02:00
a871115889
Fix some warnings ( #12615 )
2022-07-30 12:51:23 +01:00
d631f21024
Let core.get_mod_storage be called multiple times ( #12572 )
2022-07-23 22:27:07 +02:00
9f41b4f72d
Add check_mod_configuration to main menu
2022-07-14 22:12:54 +01:00
1d512ef7f4
Reduce code duplication between c_converter.cpp and helper.cpp
2022-07-14 20:55:45 +02:00
8ff3fadba0
Remove unnecessary float limits from script API
...
Leaves a check for NaN and inf.
2022-07-14 20:55:45 +02:00
20bd6bdb68
Animated particlespawners and more ( #11545 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de >
Co-authored-by: sfan5 <sfan5@live.de >
Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com >
2022-07-13 11:57:12 +02:00
e51f474613
Sounds: Various little improvements ( #12486 )
...
Use SimpleSoundSpec where reasonable (OpenAL)
Ensure the sound IDs do not underflow or get overwritten -> loop in u16
Proper use of an enum.
2022-07-09 22:32:24 +02:00
142928e944
Allow to set maximum star opacity at daytime ( #11663 )
2022-07-02 19:57:48 +01:00
18fbc0394b
Remove tile_images and special_materials obsolete code ( #12455 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com >
2022-06-28 00:55:01 +01:00
4163c872af
Fix two memleak reports from Coverity ( #12466 )
2022-06-26 14:37:50 +01:00
a463620edb
Re-order sound-related code ( #12382 )
...
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated
'fade' and 'pitch' values on server-side where only one was used anyway.
SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included.
Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the
future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-20 21:56:12 +02:00
e9e721b937
Fix entity related bugs
...
* Make minetest.add_entity() binary-safe
* Fix on_death pushing dummy ObjectRef instead of nil
2022-06-15 17:20:07 +02:00
e7d4ec6834
on_deactivate: distinguish removal and unloading ( #11931 )
...
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-06-11 20:01:14 +02:00
f4a53f7ee6
No damage effects on hp_max change ( #11846 )
2022-06-11 20:00:40 +02:00
4baf56520d
Android: Add support for sharing debug.txt ( #12370 )
2022-06-05 17:42:09 +01:00