paramat
39398b9ed6
Builtin//misc_helpers: Various fixes ( #7737 )
...
Remove unused variable 'seplen'.
Fix 'cparam2'->'param2'.
Do not initialise variable 'p' twice.
2022-05-21 16:16:18 +02:00
paramat
cbc774df86
Pointed_thing_to_face_pos: Avoid crash when player is inside a node ( #7342 )
...
Avoid crash in some situations when player is inside a node, causing
'above' to equal 'under'.
In this situation return 'under' which is the node position very close
to the face position that would normally be returned.
2022-05-21 16:15:58 +02:00
rubenwardy
b744f1d46f
Add online content repository
...
Replaces mods and texture pack tabs with a single content tab
2022-05-21 16:15:57 +02:00
SmallJoker
f2628f1eb4
core.rotate_node: Do not trigger after_place_node ( #6900 )
2022-05-21 16:15:54 +02:00
HybridDog
0a429927a9
Allow dumping userdata ( #7012 )
2022-05-21 16:15:47 +02:00
Ezhh
5849b6fc97
Give subgames the ability to disallow specific mapgens ( #6792 )
2022-05-21 16:15:38 +02:00
paramat
c6d98a56e7
Pointed thing to face pos: Use 'eye height' object property ( #6754 )
2022-05-21 16:15:36 +02:00
SmallJoker
b06a8d6016
core.rotate_node: Run callbacks like with any regular placed node ( #6648 )
2022-05-21 16:15:32 +02:00
DTA7
9b0e13f582
Set placer to nil instead of a non-functional one in item_OnPlace ( #6449 )
...
* Set placer to nil instead of a non-functional one
This requires nil checks in core.rotate_node and core.rotate_and_place.
2022-05-21 16:15:23 +02:00
tenplus1
2a3112ab78
Fix Rotate Node Placement ( #6424 )
...
This properly checks for creative mode or privilege when using fixed rotate_node() function.
2022-05-21 16:15:22 +02:00
sfan5
10fbc96971
Fix core.wrap_text and make its behaviour consistent with the docs
...
Code based on initial implementation by @dsohler.
2022-05-21 16:15:19 +02:00
Nathanaël Courant
2a8c81c50e
Add '@n' escape sequences and some documentation on translated strings.
2022-05-21 16:15:12 +02:00
Nathanaël Courant
54fc7afb7e
Add clientside translations.
2022-05-21 16:15:11 +02:00
Gael-de-Sailly
dd12312b58
Add minetest.rgba function that returns ColorString from RGBA or RGB values
2022-05-21 16:14:57 +02:00
red-001
0aaa633975
Fix sending color codes to clients that don't support them. ( #5950 )
...
Also remove `disable_escape_sequences` since it's not needed anymore.
2022-05-21 16:14:54 +02:00
red-001
2f8ebed7cc
Add function to get player privileges ( #5933 )
...
* [CSM] Add function to get player privileges + move related help functions to common
* Added @Zeno- const
2022-05-21 16:14:52 +02:00
SmallJoker
7b4120ee9f
CSM: Document forgotten functions
2022-05-21 16:14:47 +02:00
ShadowNinja
5030ce5f4b
Use a settings object for the main settings
...
This unifies the settings APIs.
This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.
2022-05-21 16:14:45 +02:00
MarkuBu
a99d95ee92
Pointed thing to face pos: Fix crash if opening door with slab or stair
...
Avoids crash caused when 'pointed thing -under' and '-above' are not
face-neighbours, for example in the case of pointing to the top half
of a door.
2022-05-21 16:14:41 +02:00
MarkuBu
61efcfec7d
First commit for fine pointed ( #5485 )
2022-05-21 16:14:34 +02:00
Diego Martínez
67ca4f86c5
Add functions to strip color information. ( #5472 )
2022-05-21 16:14:34 +02:00
Loïc Blot
1bbcceb65c
Fix a type bug in colorize function
...
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
2022-05-21 16:14:33 +02:00
Loïc Blot
f436404054
Typo fix
2022-05-21 16:14:32 +02:00
red-001
acb03dc956
Add multiline support to colorize. ( #5444 )
2022-05-21 16:14:31 +02:00
red-001
52662dfcce
Block access to the `io` library
2022-05-21 16:14:31 +02:00
red-001
d210b6d2cf
Give CSM access to use `core.colorize()` ( #5113 )
2022-05-21 16:14:30 +02:00
red-001
0412d35355
Add local formspecs. ( #5094 )
2022-05-21 16:14:27 +02:00
sfan5
a75a5eb3eb
Revert "Adding particle blend, glow and animation ( #4705 )"
...
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2022-05-21 16:14:01 +02:00
Foghrye4
cfa39937f9
Adding particle blend, glow and animation ( #4705 )
2022-05-21 16:14:01 +02:00
Auke Kok
f5336937c7
Core.rotate_and_place: Remove unused call to get_look_pitch()
2022-05-21 16:13:58 +02:00
Rui914
32752d2bc5
Faster insertion into table
2022-05-21 16:13:23 +02:00
kwolekr
37a94ffa9d
Add /emergeblocks command and core.emerge_area() Lua API
2022-05-21 16:12:52 +02:00
sfan5
22c20ffd4d
Allow random menu images for subgames
2022-05-21 16:12:43 +02:00
est31
fea38f3780
Fix wrong replace from previous commit
2022-05-21 16:12:34 +02:00
est31
1c971d206e
Localize inside whole misc_helpers.lua
2022-05-21 16:12:34 +02:00
est31
5a662882bf
Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist
...
Client now informs about incompatible servers from the list, this permits to prevent the protocol movements.
Server announces its supported protocol versions to master server
2022-05-21 16:12:25 +02:00
est31
1052201620
Fix crash on passing false as value in table to table.copy(t)
...
Fixes #2293 .
2022-05-21 16:12:23 +02:00
kwolekr
5d9c758b13
Simplify deleteblocks chat command argument parsing
...
Add optional core.pos_to_string decimal place rounding
Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency
2022-05-21 16:12:17 +02:00
Diego Martínez
c2450727a1
Fix off-by-one error in `string:split` implementation.
2022-05-21 16:12:13 +02:00
Diego Martínez
a88e2f410b
Faster string.split implementation.
2022-05-21 16:12:11 +02:00
Zeno-
64bc547162
Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly"
...
This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218.
See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
2022-05-21 16:12:09 +02:00
paramat
1adec0e3c5
Fix undeclared globals in functions and shorten lines in misc_helpers.lua.
2022-05-21 16:12:08 +02:00
SmallJoker
2dba3fd295
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2022-05-21 16:12:07 +02:00
SmallJoker
7fa045415f
Add minetest.copy_table(table) To get rid off the "table references"
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:06 +02:00
dvere
694e0d0781
Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly
...
According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
2022-05-21 16:12:05 +02:00
ShadowNinja
d9875f12f2
Fix dump() indentation with non-tab indents
2022-05-21 16:12:00 +02:00
Ryan Newell
c8a29cc3b7
Add last_login field to auth.txt
...
Also shortens some related code and adds more parameters to string.split.
2022-05-21 16:12:00 +02:00
ShadowNinja
f32731396b
Make dump's output prettier
...
Changes:
* Indentation with tabs by default.
* Array keys dumped without "[i] = " prefix.
* String keys that are valid identifiers aren't enclosed in '[""]'.
* Basic support for multiple references (as specified in the comment).
2022-05-21 16:11:57 +02:00
sapier
dd0e0e019f
Add srollbar formspec element
2022-05-21 16:11:52 +02:00
ShadowNinja
3164569a22
Rework dumping functions
...
Changes:
* Add comments to explain the dumping code
* Add support for dumping values of any type (as '<' <type> '>')
* Add support for tables as keys in dump2()
* Make dump2() return it's result (like dump()) rather than printing it
* Simplify and optimize function serialization via serialize()
2022-05-21 16:11:44 +02:00