Lars Müller
f4a53f7ee6
No damage effects on hp_max change ( #11846 )
2022-06-11 20:00:40 +02:00
sfan5
8b74257bf3
Reduce size of ContentFeatures structure
...
On my system this is a reduction from 4664 to 3704 bytes.
This is not for the sake of saving RAM but ensuring
commonly used structures fit into caches better.
2022-05-26 15:49:12 +02:00
sfan5
ec9f157512
Use native packer to transfer globals into async env(s)
2022-05-10 22:37:42 +02:00
Jude Melton-Houghton
7f58887ae3
Support packing arbitrary graphs ( #12289 )
2022-05-10 22:37:33 +02:00
Lars Müller
89c82035d8
hud_get: Return precision field for waypoints ( #12215 )
2022-05-04 20:55:20 +02:00
sfan5
e7659883cc
Async environment for mods to do concurrent tasks ( #11131 )
2022-05-02 20:56:06 +02:00
sfan5
56a558baf8
Refactor some Lua API functions in preparation for async env
2022-05-02 20:54:55 +02:00
Jude Melton-Houghton
06d197cdd0
Store vector metatable in registry
2022-03-29 18:07:00 +02:00
DS
8d387433b1
Fix the documentation of InvRef:get_lists() and clean up code ( #12150 )
2022-03-29 18:06:16 +02:00
sfan5
ba6fbc417e
Remove awful Mingw32 workarounds
...
Instead a warning is triggered if an affected compiler is detected.
closes #12022
2022-02-08 19:31:24 +01:00
Lars Müller
1ee37148a8
Fix types of get_mapgen_setting_noiseparams ( #12025 )
2022-02-04 20:28:43 +01:00
sfan5
8c99f2232b
Don't let HTTP API pass through untrusted function
...
This has been a problem since the first day, oops.
2021-12-18 20:37:13 +01:00
Wuzzy
21113ad410
Split liquid_viscosity to liquid_viscosity and move_resistance ( #10810 )
2021-10-01 16:21:24 +02:00
sfan5
75bf9b75ca
Make sure relevant std::stringstreams are set to binary
2021-09-11 21:06:57 +02:00
sfan5
766e885a1b
Clean up/improve some scriptapi error handling code
2021-09-10 23:16:46 +02:00
savilli
3f1adb49ae
Remove redundant on_dieplayer calls
2021-08-28 12:14:16 +02:00
SmallJoker
0c1e9603db
HUD: Reject and warn on invalid stat types ( #11548 )
...
This comes into play on older servers which do not know the "stat" type.
Warnings are only logged once to avoid spam within globalstep callbacks
2021-08-21 20:04:04 +02:00
sfan5
6e8aebf432
Add bold, italic and monospace font styling for HUD text elements ( #11478 )
...
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-07-27 19:11:46 +02:00
SmallJoker
f2fd443262
Inventory: Make addList() consistent ( #11382 )
...
Fixes list clearing for inv:set_list() using same size, since 2db6b07.
addList() now clears the list in all cases. Use setSize() to resize without clearing.
2021-06-30 20:39:38 +02:00
SmallJoker
2db6b07de1
Inventory: show error on invalid list names ( #11368 )
2021-06-20 17:21:50 +02:00
DS
8f085e02a1
Add metatables to lua vectors ( #11039 )
...
Add backwards-compatible metatable functions for vectors.
2021-06-04 21:22:33 +02:00
Loic Blot
de85bc9227
fix: some code tidy about includes & irr namespaces
2021-05-03 19:49:19 +02:00
Loic Blot
ccdd886e27
refacto: Hud: make driver, client, player, inventory, tsrc private & drop unused guienv
...
also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
2021-05-03 19:49:19 +02:00
Vitaliy
3b78a22371
Degrotate support for mesh nodes ( #7840 )
2021-03-30 00:25:11 +02:00
sfan5
bf8fb2672e
Use place_param2 client-side for item appearance & prediction ( #11024 )
2021-03-09 00:56:53 +01: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
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
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
72b93ec0d7
Fix ObjectRef errors due to lua_isnil() ( #10564 )
...
Treat 'none' values as 'nil'
2020-11-04 21:43:18 +01:00
rubenwardy
89dd05fdf3
Fix segfault in deprecation logging due to tail call, log by default ( #10174 )
2020-10-31 18:19:23 +00:00
sfan5
660115c1ab
Decouple entity minimap markers from nametags replacing with show_on_minimap property ( #10443 )
2020-10-19 20:38:15 +02:00
JosiahWI
11f3deb9c4
Pass ContentFeatures as reference to read_content_features ( #10464 )
2020-10-13 16:36:01 +01:00
DS
f3ae45b2b2
Add a short_description to be used by mods ( #8980 )
2020-10-09 19:11:21 +01:00
SmallJoker
f46509d5e2
Remove unused functions reported by cppcheck ( #10463 )
...
Run unused functions reported by cppcheck
This change removes a few (but not all) unused functions.
Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-05 09:07:33 +02:00
Lars Müller
1c38027c3a
Fix precision not working in hud_change ( #10186 )
2020-08-12 11:51:50 +02:00
sfan5
70df3d54f3
Quick workaround for crashing destructor on Mingw32
...
closes #10137
2020-07-09 22:01:46 +02:00
Danila Shutov
3a6dfda358
Make shading of CAOs optional ( #10033 )
2020-06-16 20:48:31 +01:00
SmallJoker
42a9b45c21
Lua API: Log incorrect parameter types as error ( #9954 )
...
Incorrect parameter types are logged as errors, taking coercion into account.
This is a workaround to ensure mod compatibility.
Duplicate warnings are ignored per server instance.
2020-06-01 19:02:15 +02:00
sfan5
732c8008f4
CSM: Fix crashing minetest.get_item_def()
...
fixes #9884
2020-05-20 20:15:09 +02:00
Wuzzy
c94d37827d
Rework functionality of leveled nodes ( #9852 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-05-19 21:08:37 +02:00
Lars Müller
9ba24f89f5
Damage texture modifier ( #9833 )
...
Adds a new object property "damage_texture_modifier"
2020-05-11 21:41:36 +02:00
Wuzzy
6e1372bd89
Add support for statbar “off state” icons ( #9462 )
...
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.
Add "off state" textures to the builtin statbars.
Co-authored-by: SmallJoker <mk939@ymail.com>
2020-05-11 21:40:45 +02:00
sfan5
b6b80f55c8
Expose collided objects in moveresult
...
closes #9787
2020-05-06 14:03:52 +02:00
SmallJoker
1b6f40c356
Rename moveresult speed to velocity
2020-05-05 08:37:04 +02:00
sfan5
3475759d1a
Expose collision information to LuaEntity on_step
2020-04-27 20:45:46 +02:00
SmallJoker
be71e70a91
Script: Enforce type checks if not nil ( #9748 )
...
* Script: Enforce type checks if not nil
2020-04-27 07:02:39 +02:00
HybridDog
4361bfcb4d
Fix configuration caching in log_deprecated ( #9697 )
...
* Fix configuration caching in log_deprecated
The configured variable was never set to true.
I've set the variables to thread_local because the configuration should be reloaded after reentering the world from mainmenu.
2020-04-22 00:07:12 +02:00
sfan5
8ae8c1600a
Fix parsing JSON with large integers ( #9674 )
2020-04-15 08:01:28 +02:00