93 Commits

Author SHA1 Message Date
MoNTE48
47fdf55e9c Backport 'Add minetest.is_creative_enabled' from MT5 2020-12-01 18:01:48 +01:00
Maksim
56455f4297 Fix "Can't serialize data of type userdata" 2020-06-29 19:35:12 +02:00
Maksim
c59b9009cd Builtin: minor cleanup 2020-04-16 21:00:57 +02:00
MoNTE48
09b290421c Try to improve files auth db
It is definitely not designed for such loads! This is the last attempt to continue using the files database. LuaVM is about to run out of memory for the auth table! Trying to delay OOM's...
2020-03-26 23:17:32 +01:00
MoNTE48
bb8d62e5cb Builtin: backport some fixes 2020-03-09 15:16:02 +01:00
MoNTE48
fe5941bdf7 Builtin: Backport MT5 Game 2020-02-04 21:47:07 +01:00
MoNTE48
b3a34dd850 Builtin: Backport MT5 minor changes 2020-02-04 21:47:07 +01:00
MoNTE48
1bb669c854 Builtin: update vector 2020-01-17 14:22:09 +01:00
MoNTE48
32c44e00c4 Builtin: Clearing Functions and Variables 2019-10-16 20:08:12 +02:00
MoNTE48
841c4d4379 Some misc_helpers fixes 2019-10-16 16:02:49 +02:00
MoNTE48
399f707877 Fix builtin formatting 2019-08-02 17:47:34 +02:00
MoNTE48
9ea8b529f1 ABM optimizations, doors cleanup, sponge small fixes 2019-06-29 23:23:33 +02:00
stujones11
75f527d969 Expose PLATFORM global 2019-05-23 23:47:36 +02:00
Maksim
746663dcb9 Minor fixes 2019-05-20 23:22:47 +02:00
MoNTE48
e98d421aff Merge remote-tracking branch 'upstream/stable-0.4' into sync 2019-04-01 20:18:54 +02:00
SmallJoker
7c0ec10625 core.rotate_node: Do not trigger after_place_node (#6900) 2018-06-03 17:32:00 +02:00
you
aca4d66e2f Allow dumping userdata (#7012) 2018-06-03 17:32:00 +02:00
SmallJoker
045b0629a1 core.rotate_node: Run callbacks like with any regular placed node (#6648) 2018-06-03 17:32:00 +02:00
DTA7
1219f8ef7b 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.
2018-06-03 17:31:59 +02:00
tenplus1
b6382d8532 Fix Rotate Node Placement (#6424)
This properly checks for creative mode or privilege when using fixed rotate_node() function.
2018-06-03 17:31:59 +02:00
sfan5
1e63e53a3f Fix core.wrap_text and make its behaviour consistent with the docs
Code based on initial implementation by @dsohler.
2018-06-03 17:31:59 +02:00
red-001
ffd719995c Fix sending color codes to clients that don't support them. (#5950)
Also remove `disable_escape_sequences` since it's not needed anymore.
2018-06-03 17:31:59 +02:00
Maksim Gamarnik
35770f4abb Merge Minetest 0.4.16 2017-06-06 23:03:34 +03:00
SmallJoker
50758af1cc Builtin: Fix subgame mod selection (#5367) 2017-05-17 19:31:57 +02:00
SmallJoker
b6ff239ec6 CSM: Document forgotten functions 2017-05-16 21:57:26 +01:00
SmallJoker
a5777cb04a minetest.deserialize: Throw error when argument not string (#5738) 2017-05-09 23:11:20 +02:00
ShadowNinja
dfb4074a5a 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.
2017-05-06 15:33:19 -04:00
MarkuBu
f6daef7c63 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.
2017-04-19 02:01:42 +01:00
red-001
c84ad776bb [CSM] Use more gettext (#5553) 2017-04-10 21:14:00 +02:00
Auke Kok
715b8a85e2 minetest.after(): simplify further, pause in singleplayer (#5500)
Using the `dtime` value entirely, this will stop the clock
if the game is paused in singleplayer. Since most of the
clocks were fixed a long time ago, this should again be
safe to use.
2017-04-02 10:51:16 +02:00
MarkuBu
80dc0227c7 First commit for fine pointed (#5485) 2017-04-01 16:50:53 +02:00
Diego Martínez
3837e7d77e Add functions to strip color information. (#5472) 2017-03-28 21:55:39 +02:00
Loïc Blot
9ae099e7ed Fix a type bug in colorize function
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
2017-03-28 14:50:17 +02:00
red-001
792d324efc Change command prefix to "." and add "help" command. 2017-03-26 05:51:14 +01:00
Loïc Blot
4292670b64 Typo fix 2017-03-24 08:59:52 +01:00
red-001
c118df6b00 Add multiline support to colorize. (#5444) 2017-03-24 08:36:29 +01:00
red-001
3912e517a8 Block access to the io library 2017-03-19 12:34:33 +01:00
red-001
9a9db57881 Give CSM access to use core.colorize() (#5113) 2017-03-17 19:20:13 +01:00
red-001
8fe57bcf35 [CSM] Improve security for client-sided mods (#5100) 2017-03-13 23:56:05 +01:00
red-001
2001a8c195 [CSM] Add local formspecs. (#5094) 2017-03-13 23:56:05 +01:00
Loïc Blot
04680f648a [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)
* squashed: CSM: Implement register_globalstep
  * Re-use fatal error mechanism from server to disconnect client on CSM error
  * Little client functions cleanups

* squashed: CSM: add core.after function
  * core.after is shared code between client & server
  * ModApiUtil get_us_time feature enabled for client
2017-03-13 23:56:05 +01:00
red-001
1c7fd8a35c [CSM] Add client-sided chat commands (#5092) 2017-03-13 23:56:05 +01:00
Maksim Gamarnik
e05f7db82f Updated to Minetest ver. 0.4.15 2017-01-30 00:44:07 +02:00
Auke Kok
4eb54bc232 Vector: Add vector.sort(a, b): return box edges
This function returns the box corners of the smallest box
that includes the two given coordinates.
2017-01-23 07:38:39 +00:00
sfan5
a99777ab39 Revert "Adding particle blend, glow and animation (#4705)"
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-14 15:28:06 +01:00
Foghrye4
04ea490226 Adding particle blend, glow and animation (#4705) 2016-11-15 00:09:59 +10:00
Auke Kok
5d6adaebb7 Core.rotate_and_place: Remove unused call to get_look_pitch() 2016-10-31 10:55:36 +00:00
rubenwardy
bb94e62525 Builtin: Add vector.floor helper function 2016-10-17 22:03:49 +02:00
HybridDog
516b701076 Only allow strings to be passed to minetest.global_exists (#4253)
Sometimes you accidentally forget the quotes when using global_exists, this makes minetest abort if you did so.

M  builtin/common/strict.lua
2016-06-28 06:34:22 +02:00
Maksim Gamarnik
8f6ddcc57c Merge branch 'upstream/master' 2016-03-14 11:44:17 +02:00