oweals/minetest.git
6 years agoOptimize ABM checks.
Lars Hofhansl [Sat, 21 Jul 2018 10:07:43 +0000 (03:07 -0700)]
Optimize ABM checks.

See #7555

Cache (up to 64) node types for each active block.
Check this cache first to see whether any ABM needs to be triggered for a block.

6 years agoDisable shaders GUI on unsupported drivers (#7563)
Vitaliy [Sat, 21 Jul 2018 07:26:40 +0000 (10:26 +0300)]
Disable shaders GUI on unsupported drivers (#7563)

* Disable shaders GUI on unsupported drivers (#2060)

* Disable shaders if unavailable

6 years agoUpdate mip mapping and textarea documentation (#7315)
HybridDog [Thu, 19 Jul 2018 16:28:26 +0000 (18:28 +0200)]
Update mip mapping and textarea documentation (#7315)

* Fix textarea formspec documentation
The label is shown and the background isn't
* Document the missing gamma correction when generating mip maps
* Remove duplicate text (such as size parameter descriptions)

6 years agoCSM: Disallow exploitable clientside mod functions by default (#7547)
Paramat [Thu, 19 Jul 2018 02:58:48 +0000 (03:58 +0100)]
CSM: Disallow exploitable clientside mod functions by default (#7547)

6 years agoMgvalleys: Make river depth variation and humidity drop optional (#7532)
Paramat [Wed, 18 Jul 2018 02:34:05 +0000 (03:34 +0100)]
Mgvalleys: Make river depth variation and humidity drop optional (#7532)

Add 2 new mapgen flags to make river depth variation and humidity drop
with altitude independently optional, instead of both being enabled by
the 'humid rivers' flag.

Simplify and clarify related code by removing a low priority
optimisation regarding 't_heat'.
Remove unnecessary optimisation bools and use spflags directly instead.
Improve and fix documentation in settingtypes.txt.
A few minor code cleanups.

6 years agoBuiltin: Replace deprecated function calls (#7561)
SmallJoker [Tue, 17 Jul 2018 18:17:54 +0000 (20:17 +0200)]
Builtin: Replace deprecated function calls (#7561)

6 years agoCheck if player exists on use of /privs (#7554)
ClobberXD [Mon, 16 Jul 2018 12:55:04 +0000 (18:25 +0530)]
Check if player exists on use of /privs (#7554)

* /privs: Check if player exists

6 years agoLua_api.txt: Various minor improvements (#7560)
Paramat [Mon, 16 Jul 2018 03:57:44 +0000 (04:57 +0100)]
Lua_api.txt: Various minor improvements (#7560)

Add missing section title for 'Node paramtypes'.
Clarify documentation for schematic Y-slice table.
Document that schematic Y-slice behaviour does not invert for ceiling
schematic decorations.

6 years agoRemove legacy client handling code.
Lars Hofhansl [Sat, 14 Jul 2018 18:38:52 +0000 (11:38 -0700)]
Remove legacy client handling code.

6 years agoMake player liquid speed independent of FPS (#7543)
Paramat [Sat, 14 Jul 2018 17:41:26 +0000 (18:41 +0100)]
Make player liquid speed independent of FPS (#7543)

Make player liquid speed independent of FPS.
Fix codestyle issues in code block.

6 years agoDocument config updates in minetest.conf.example.
Lars Hofhansl [Fri, 13 Jul 2018 22:10:35 +0000 (15:10 -0700)]
Document config updates in minetest.conf.example.

6 years agoAdjust some settings to modern environments and networks. (#7549)
lhofhansl [Fri, 13 Jul 2018 20:11:49 +0000 (22:11 +0200)]
Adjust some settings to modern environments and networks. (#7549)

6 years agoFix bug setting channel window size.
Lars Hofhansl [Fri, 13 Jul 2018 12:02:08 +0000 (05:02 -0700)]
Fix bug setting channel window size.

6 years agoEnsure that legacy mode is correctly disabled.
Lars Hofhansl [Fri, 13 Jul 2018 09:50:01 +0000 (02:50 -0700)]
Ensure that legacy mode is correctly disabled.

6 years agoReduce block load glitches
Lars Hofhansl [Thu, 12 Jul 2018 07:53:50 +0000 (00:53 -0700)]
Reduce block load glitches

See #7542
This reduces glitches in deep water and underground caves.

6 years agoAndroid: Add 'aux' button (#7477)
Muhammad Rifqi Priyo Susanto [Tue, 10 Jul 2018 22:33:40 +0000 (05:33 +0700)]
Android: Add 'aux' button (#7477)

Add 'aux' button.
Use joystick to trigger 'aux' button when forward and out of main circle, by enabling
'virtual_joystick_triggers_aux' setting.

6 years agoFormspecs: Remove accidental empty 'quit' field
SmallJoker [Tue, 10 Jul 2018 16:27:03 +0000 (18:27 +0200)]
Formspecs: Remove accidental empty 'quit' field

6 years agocore.spawn_falling_node: Keep metadata (#7476)
SmallJoker [Mon, 9 Jul 2018 21:33:21 +0000 (23:33 +0200)]
core.spawn_falling_node: Keep metadata (#7476)

6 years agoBuiltin/../misc.lua: Replace minetest. with core., improve codestyle (#7540)
ClobberXD [Mon, 9 Jul 2018 18:11:35 +0000 (23:41 +0530)]
Builtin/../misc.lua: Replace minetest. with core., improve codestyle (#7540)

6 years agoLua templating reading (part 4): s16, v2s16, v2f (#7512)
Loïc Blot [Sun, 8 Jul 2018 21:06:33 +0000 (23:06 +0200)]
Lua templating reading (part 4): s16, v2s16, v2f (#7512)

6 years agoRevert 6587 - Optimize entity-entity collision (#7539)
lhofhansl [Sun, 8 Jul 2018 20:30:55 +0000 (13:30 -0700)]
Revert 6587 - Optimize entity-entity collision (#7539)

6 years agoLua_api.txt: Formatting and grammar fixes (#7534)
pauloue [Sun, 8 Jul 2018 03:18:53 +0000 (23:18 -0400)]
Lua_api.txt: Formatting and grammar fixes (#7534)

Use tree output for directory structure.
Remove 2 blank lines near document top.
Spelling and grammar fixes.
Markdown fixes.
Condense paths section.
Fix skipped heading levels.

6 years agoLua_api.txt: Improve section titles, clarify sections (#7533)
Paramat [Fri, 6 Jul 2018 20:02:54 +0000 (21:02 +0100)]
Lua_api.txt: Improve section titles, clarify sections (#7533)

6 years agoFix memory leak in guiConfirmRegistration
HybridDog [Wed, 27 Jun 2018 16:09:45 +0000 (18:09 +0200)]
Fix memory leak in guiConfirmRegistration

6 years agoRun code style linter first (#7213)
rubenwardy [Thu, 5 Jul 2018 21:04:39 +0000 (22:04 +0100)]
Run code style linter first (#7213)

The code style linter is the most likely to fail, so should be
placed at the top of the list so it's started first. Note that
a failed job doesn't stop others from running

6 years agoZoom: Correctly verify client passed zoom at the server (#7526)
lhofhansl [Mon, 2 Jul 2018 23:16:17 +0000 (16:16 -0700)]
Zoom: Correctly verify client passed zoom at the server (#7526)

Fixes generation of distant world when not zooming in creative mode
(in creative mode zoom FOV is 15 degrees).

6 years agoDrop ClientEvent CEE_PLAYER_BREATH: triggering function is not called.
Loic Blot [Sun, 1 Jul 2018 11:47:50 +0000 (13:47 +0200)]
Drop ClientEvent CEE_PLAYER_BREATH: triggering function is not called.

Also drop 3 useless IntervalLimiter

6 years agoLog deprecated Lua function calls (#7491)
SmallJoker [Sun, 1 Jul 2018 10:31:49 +0000 (12:31 +0200)]
Log deprecated Lua function calls (#7491)

6 years agoMake the server status message customizable (#7357)
SmallJoker [Sun, 1 Jul 2018 10:31:28 +0000 (12:31 +0200)]
Make the server status message customizable (#7357)

Remove now redundant setting show_statusline_on_connect
Improve documentation of `minetest.get_server_status`

6 years agoBackport Android cleanup parts from #7123 (#7513)
Loïc Blot [Sun, 1 Jul 2018 10:23:38 +0000 (12:23 +0200)]
Backport Android cleanup parts from #7123 (#7513)

Also resync properly the dependencies versions.

Don't let the makefile handle the cleanups itself. Let gradle do it.

This is one of the first steps to remove the makefile and replace it with a full gradle support

6 years agoAndroid: Resize jump and sneak buttons' touch target (#7498)
Muhammad Rifqi Priyo Susanto [Sat, 30 Jun 2018 21:33:14 +0000 (04:33 +0700)]
Android: Resize jump and sneak buttons' touch target (#7498)

6 years agoModernize lua read (part 2 & 3): C++ templating assurance (#7410)
Loïc Blot [Sat, 30 Jun 2018 15:11:38 +0000 (17:11 +0200)]
Modernize lua read (part 2 & 3): C++ templating assurance (#7410)

* Modernize lua read (part 2 & 3): C++ templating assurance

Implement the boolean reader
Implement the string reader
Also remove unused & unimplemented script_error_handler
Add a reader with default value

6 years agoFix memory leaks in mod storage (#7500)
red-001 [Sat, 30 Jun 2018 15:11:04 +0000 (16:11 +0100)]
Fix memory leaks in mod storage (#7500)

6 years agoFix world deletion (#7494)
Vitaliy [Sat, 30 Jun 2018 13:13:53 +0000 (16:13 +0300)]
Fix world deletion (#7494)

* Fix world deletion

6 years agoLog usage of /pulverize (#7503)
Anand S [Sat, 30 Jun 2018 10:53:43 +0000 (16:23 +0530)]
Log usage of /pulverize (#7503)

6 years agoRemoved '$' symbols from the start of shell commands. (#7506)
RustyRaptor [Sat, 30 Jun 2018 10:01:56 +0000 (04:01 -0600)]
Removed '$' symbols from the start of shell commands. (#7506)

6 years agoFix a memleak before assertion in l_get_mod_storage
Loic Blot [Sat, 30 Jun 2018 08:32:02 +0000 (10:32 +0200)]
Fix a memleak before assertion in l_get_mod_storage

6 years agoBump android version to 20
Loic Blot [Thu, 28 Jun 2018 16:11:21 +0000 (18:11 +0200)]
Bump android version to 20

6 years agoUpdate cURL (7.60.0) & SQLite3 (3.24.0)
Loic Blot [Thu, 28 Jun 2018 15:46:01 +0000 (17:46 +0200)]
Update cURL (7.60.0) & SQLite3 (3.24.0)

6 years agoMgvalleys: Fix 'mgvalleys_spflags' setting name (#7495)
Paramat [Thu, 28 Jun 2018 01:09:31 +0000 (02:09 +0100)]
Mgvalleys: Fix 'mgvalleys_spflags' setting name (#7495)

6 years agoFix mod channels crash (#7481)
red-001 [Wed, 27 Jun 2018 15:45:40 +0000 (16:45 +0100)]
Fix mod channels crash (#7481)

6 years agoFix small memory leaks in client. (#7492)
red-001 [Wed, 27 Jun 2018 15:06:37 +0000 (16:06 +0100)]
Fix small memory leaks in client. (#7492)

6 years agoCavegen: Fix errors when getting biome outside mapchunk (#7480)
Paramat [Tue, 26 Jun 2018 18:35:23 +0000 (19:35 +0100)]
Cavegen: Fix errors when getting biome outside mapchunk (#7480)

Some cave segments are outside the mapchunk.

Previously, biome was being calculated by a function that uses the noise
maps. Points outside the mapchunk resulted in incorrect noise map indexes
that were sometimes outside the noise map size, causing a crash.

Use either noise maps or point noise calculations depending on point
location.

6 years agoUpdate settings translations
SmallJoker [Wed, 20 Jun 2018 20:36:28 +0000 (22:36 +0200)]
Update settings translations

6 years agoRename CSM flavours to restrictions
SmallJoker [Wed, 20 Jun 2018 20:36:08 +0000 (22:36 +0200)]
Rename CSM flavours to restrictions

& Satisfy LINT

6 years agoFix buffer overrun in SRP (#7484)
red-001 [Tue, 26 Jun 2018 08:02:26 +0000 (09:02 +0100)]
Fix buffer overrun in SRP (#7484)

The old code got a pointer to the array instead of the first element, this resulted in a buffer overflow when the function was used more than once.

6 years agoFix libgmp detection (#7488)
Leonid Bobrov [Tue, 26 Jun 2018 08:00:33 +0000 (11:00 +0300)]
Fix libgmp detection (#7488)

6 years agoLua_api.txt: Re-order some sections. Alphabeticise class reference (#7487)
Paramat [Tue, 26 Jun 2018 01:34:27 +0000 (02:34 +0100)]
Lua_api.txt: Re-order some sections. Alphabeticise class reference (#7487)

6 years agoFix MurmurHash implementation to really be unaligned (#7482)
sfan5 [Mon, 25 Jun 2018 23:12:09 +0000 (01:12 +0200)]
Fix MurmurHash implementation to really be unaligned (#7482)

6 years agoLua_api.txt: Replace `engine.*` with `core.*` (#7474)
Anand S [Sun, 24 Jun 2018 20:18:25 +0000 (01:48 +0530)]
Lua_api.txt: Replace `engine.*` with `core.*` (#7474)

6 years agoDecoration API: Add lightweight ability to have complete coverage (#7456)
Paramat [Sun, 24 Jun 2018 16:14:18 +0000 (17:14 +0100)]
Decoration API: Add lightweight ability to have complete coverage (#7456)

When the noise value or fill_ratio >= 10.0 complete coverage is enabled.
This disables random placement to avoid redundant multiple placements
at one position. Instead, 1 decoration per surface node is placed by
looping across each division.

'10' was chosen as this is the fill_ratio that previously created
very near complete coverage. The complete coverage feature therefore
integrates smoothly when noise is used for variable decoration density.

'fill_ratio = 10' should be used by modders who want a decoration
placed on every surface node. Compared to before such a decoration
placement will be 10 times faster.

6 years agoFix rtt >= 0.0f assertion and free_move crash
SmallJoker [Sun, 24 Jun 2018 12:35:29 +0000 (14:35 +0200)]
Fix rtt >= 0.0f assertion and free_move crash

6 years agoAndroid: Use correct temporary path (#7463)
stujones11 [Sat, 23 Jun 2018 20:38:19 +0000 (21:38 +0100)]
Android: Use correct temporary path (#7463)

6 years agoRTT fixes (#7428)
you [Sat, 23 Jun 2018 07:16:01 +0000 (09:16 +0200)]
RTT fixes (#7428)

* Few code updates

* Do not show average RTT before timing out

* Fix unwanted integer division in RTTStatistics

* Fix float format, prettier jitter calculation

* Use +=, 0.1f -> 100.0f for stronger average updates

6 years agoFix crash caused by Lua error during startup (#7473)
red-001 [Fri, 22 Jun 2018 19:04:41 +0000 (20:04 +0100)]
Fix crash caused by Lua error during startup (#7473)

6 years agoFix ipv6_server=true not accepting IPv4 connections on Windows (#7471)
sfan5 [Fri, 22 Jun 2018 18:54:23 +0000 (20:54 +0200)]
Fix ipv6_server=true not accepting IPv4 connections on Windows (#7471)

6 years agoREADME.md: Improve formatting for consistency (#7472)
Anand S [Fri, 22 Jun 2018 12:00:49 +0000 (17:30 +0530)]
README.md: Improve formatting for consistency (#7472)

* README.md: Improve formatting for consistency

6 years agoRemove misleading documentation about IPv6 server announcing
sfan5 [Fri, 22 Jun 2018 07:42:42 +0000 (09:42 +0200)]
Remove misleading documentation about IPv6 server announcing

6 years agoBiome API: Fix absent water decorations and dust, in deep water (#7470)
Paramat [Thu, 21 Jun 2018 18:28:54 +0000 (19:28 +0100)]
Biome API: Fix absent water decorations and dust, in deep water (#7470)

Previously, the biomemap was 'BIOME_NONE' for a mapchunk column if a
stone surface was not found in it, causing water surface decorations
and water surface dust to fail.

Store the biome ID of the biome calculated at a water surface and add
it to the biomemap if the biomemap is 'BIOME_NONE' for the mapchunk
column. The biome calculated at a stone surface still has priority
for the biomemap entry, as it should.

Edit an incorrect comment.

6 years agoREADME.md: Improve version scheme text (#7465)
Paramat [Wed, 20 Jun 2018 12:11:13 +0000 (13:11 +0100)]
README.md: Improve version scheme text (#7465)

6 years agoLua_api.txt: Fix incorrect vector section directive (#7466)
Anand S [Wed, 20 Jun 2018 12:05:56 +0000 (17:35 +0530)]
Lua_api.txt: Fix incorrect vector section directive (#7466)

6 years agoBiome dust: Revert fix that added dust to mod structures (#7464)
Paramat [Tue, 19 Jun 2018 21:09:42 +0000 (22:09 +0100)]
Biome dust: Revert fix that added dust to mod structures (#7464)

Revert commit 99143f494711034068685b6ee845ce19fa09d7d9 and commit
f4ca830abe1aa22875c99b31bf2ee56e26f83f05.

These commits caused biome dust to be applied even when there was no core
mapgen terrain in a mapchunk column. So the dust, which overgenerates,
then appeared on structures added by mods in 'on_generated', such as
floatlands, asteroids or above-surface realms.

6 years agoUpdate to new ContentDB API
rubenwardy [Mon, 18 Jun 2018 19:47:38 +0000 (20:47 +0100)]
Update to new ContentDB API

6 years agoRemove deprecated functions from menu_lua_api.txt (#7455)
Anand S [Sun, 17 Jun 2018 08:41:21 +0000 (14:11 +0530)]
Remove deprecated functions from menu_lua_api.txt (#7455)

6 years agoProvide Xorg/net wm process ID (#7445)
thoughtjigs [Sun, 17 Jun 2018 08:41:07 +0000 (01:41 -0700)]
Provide Xorg/net wm process ID (#7445)

Adding support for _NET_WM_PID as defined in Extended Window Manager Hints
Move verbose messaging to setupXorgTopLevelWindow method as Xorg messages should only occur when running in Xorg env.
Irrlicht returns the XDisplay as a void* and XWindow as an unsigned long so reinterpret those as the appropriate type. Also fixed a spaces for tab formating issue

6 years agoVersion scheme change: 0.5.0 -> 5.0.0 (#7449)
Loïc Blot [Fri, 15 Jun 2018 07:16:48 +0000 (09:16 +0200)]
Version scheme change: 0.5.0 -> 5.0.0 (#7449)

* Version scheme change: 0.5.0 -> 5.0.0

6 years agoRemove Server::m_ignore_map_edit_events (noop)
Loic Blot [Fri, 15 Jun 2018 06:41:40 +0000 (08:41 +0200)]
Remove Server::m_ignore_map_edit_events (noop)

6 years agoFix release script
Loïc Blot [Thu, 14 Jun 2018 17:40:23 +0000 (19:40 +0200)]
Fix release script

client_lua_api.md -> client_lua_api.txt

6 years agoMinimal: Disable disruptive formspec test by default (#7423)
Wuzzy [Thu, 14 Jun 2018 17:32:10 +0000 (19:32 +0200)]
Minimal: Disable disruptive formspec test by default (#7423)

* Minimal: Explicit log levels

* Minimal: Formspec test now disabled by default

This is done because the formspec test was disruptive.
This test can now be toggled with server command test_formspec first.

6 years agoServer: move shutdown parts to a specific shutdown state object (#7437)
Loïc Blot [Wed, 13 Jun 2018 19:58:34 +0000 (21:58 +0200)]
Server: move shutdown parts to a specific shutdown state object (#7437)

* Server: move shutdown parts to a specific shutdown state object

6 years agoMake os.tempfolder work correctly for MinGW & MSVC (#7443)
nOOb3167 [Wed, 13 Jun 2018 11:22:17 +0000 (13:22 +0200)]
Make os.tempfolder work correctly for MinGW & MSVC (#7443)

6 years agoREADME.md: Remove 'unfinished' section. (#7440)
Paramat [Tue, 12 Jun 2018 14:43:01 +0000 (15:43 +0100)]
README.md: Remove 'unfinished' section. (#7440)

6 years agoAdd hasprivs chat command (#7336)
Anand S [Tue, 12 Jun 2018 13:39:43 +0000 (19:09 +0530)]
Add hasprivs chat command (#7336)

Require 'basic_privs' priv
Only the online players are listed.

6 years agoAndroid: gradle 3.1.3 is not available on mavenCentral
Loic Blot [Mon, 11 Jun 2018 18:37:17 +0000 (20:37 +0200)]
Android: gradle 3.1.3 is not available on mavenCentral
Also update wrapper

6 years agoAndroid: fix tools versions
Loïc Blot [Mon, 11 Jun 2018 17:19:06 +0000 (19:19 +0200)]
Android: fix tools versions

Resync with stable-0.4

6 years agoAndroid: fix assets cleanup
Loïc Blot [Mon, 11 Jun 2018 17:18:34 +0000 (19:18 +0200)]
Android: fix assets cleanup

6 years agoFix the /shutdown command (#7431)
SmallJoker [Mon, 11 Jun 2018 11:43:12 +0000 (13:43 +0200)]
Fix the /shutdown command (#7431)

6 years agoDisable clang-tidy when no C/C++ files has been modified.
Loic Blot [Sun, 10 Jun 2018 16:33:33 +0000 (18:33 +0200)]
Disable clang-tidy when no C/C++ files has been modified.

6 years agoBump android version for next release
Loic Blot [Sun, 10 Jun 2018 16:28:41 +0000 (18:28 +0200)]
Bump android version for next release

6 years agoAndroid: use c++_shared library instead of c++_static
Loic Blot [Sun, 10 Jun 2018 15:46:47 +0000 (17:46 +0200)]
Android: use c++_shared library instead of c++_static
MT doesn't launch without that

6 years agoFix many Android build issues
Loic Blot [Sun, 10 Jun 2018 14:59:34 +0000 (16:59 +0200)]
Fix many Android build issues

It remains one issue with MT itself and rtti

6 years agoFix typo (GH#7421)
number Zero [Sat, 9 Jun 2018 21:52:30 +0000 (00:52 +0300)]
Fix typo (GH#7421)

6 years agoFix narrow/utf8 difference in incoming/outcoming messages
number Zero [Sat, 9 Jun 2018 14:31:35 +0000 (17:31 +0300)]
Fix narrow/utf8 difference in incoming/outcoming messages

6 years agoMapgen flags: Add 'biomes' global mapgen flag (#7355)
Paramat [Fri, 8 Jun 2018 22:24:36 +0000 (23:24 +0100)]
Mapgen flags: Add 'biomes' global mapgen flag (#7355)

Previously the only way to disable biomes was to 'clear' the registered
biomes in a mod, but this method causes large amounts of unnecessary
processing:
1. Calculation of 4 2D noises.
2. Looping through all nodes of a mapchunk replacing nodes with identical
nodes.
The new flag disables those operations.

6 years agoLua_api.txt: Warn of errors possible with VoxelArea:index()/indexp() (#7422)
Paramat [Thu, 7 Jun 2018 23:46:10 +0000 (00:46 +0100)]
Lua_api.txt: Warn of errors possible with VoxelArea:index()/indexp() (#7422)

6 years agoStop autoforward on BACKWARD key-press (#7417)
tukkek [Wed, 6 Jun 2018 12:31:34 +0000 (09:31 -0300)]
Stop autoforward on BACKWARD key-press (#7417)

6 years agoCSM/SSM: Add on_mods_loaded callback (#7411)
Loïc Blot [Wed, 6 Jun 2018 10:53:59 +0000 (12:53 +0200)]
CSM/SSM: Add on_mods_loaded callback (#7411)

* CSM/SSM: Add on_mods_loaded callback

6 years agoFix builtin lua function os.tempfolder (#7368)
nOOb3167 [Tue, 5 Jun 2018 21:08:10 +0000 (23:08 +0200)]
Fix builtin lua function os.tempfolder (#7368)

* Fix builtin lua function os.tempfolder

6 years agoSet ENABLE_GETTEXT to TRUE by default (#7415)
Wuzzy [Tue, 5 Jun 2018 21:02:14 +0000 (23:02 +0200)]
Set ENABLE_GETTEXT to TRUE by default (#7415)

6 years agoModernize lua read (part 1): C++ templating insurance (#7394)
Loïc Blot [Mon, 4 Jun 2018 20:38:07 +0000 (22:38 +0200)]
Modernize lua read (part 1): C++ templating insurance (#7394)

* Modernize lua read (part 1): C++ templating assurance

Implement the float reader

6 years agoBiome dust placement: Improve comments, re-order some lines
Paramat [Sun, 3 Jun 2018 23:39:10 +0000 (00:39 +0100)]
Biome dust placement: Improve comments, re-order some lines

6 years agoLua_api.txt: Various improvements (#7402)
Paramat [Sun, 3 Jun 2018 03:41:03 +0000 (04:41 +0100)]
Lua_api.txt: Various improvements (#7402)

Node definition:
Clearly document custom selection box/collision box (collision box
documentation was missing).
Remove incorrect light attenuation statement and duplicated light
source statement.

Nodes:
Document which drawtypes require 'paramtype = "light"' to avoid
appearing black.
Remove incorrect light attenuation statement.

HUD: Remove 'HUD API is experimental' text.
Noise params: Spread of every octave must exceed 1.
Particles and spawners: Document glow values.

6 years agoBiomemap: Simplify code of recent commit (#7398)
Paramat [Sat, 2 Jun 2018 20:28:26 +0000 (21:28 +0100)]
Biomemap: Simplify code of recent commit (#7398)

6 years agoBiomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)
Paramat [Sat, 2 Jun 2018 02:20:09 +0000 (03:20 +0100)]
Biomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)

'generateBiomes()' constructs the biomemap as it generates biomes.
The biome calculated at first stone surface encountered is added to
the biomemap.
Previously, if no stone surface was encountered in a mapchunk column
the biomemap was left empty for that (x, z) position, causing biome
dust and water surface decoration placement to fail.

If at the base of a mapchunk column the biomemap is empty, add the
currently active biome to the biomemap, or if biome is NULL calculate
it for this position and add it to the biomemap.

6 years agoFix isNan on setYaw Lua call (#7380)
Loïc Blot [Thu, 31 May 2018 20:52:08 +0000 (22:52 +0200)]
Fix isNan on setYaw Lua call (#7380)

* Fix isNan on setYaw Lua call

6 years agoMgv7: Avoid rivergen removing mod-placed nodes when overgenerating (#7388)
Paramat [Thu, 31 May 2018 02:06:55 +0000 (03:06 +0100)]
Mgv7: Avoid rivergen removing mod-placed nodes when overgenerating (#7388)

Only allow river generation to replace c_stone.
This also acts as an optimisation by being placed before canyon shape
calculation.

6 years agoUpdate embedded Lua to 5.1.5 (#7387)
sfan5 [Wed, 30 May 2018 14:30:44 +0000 (16:30 +0200)]
Update embedded Lua to 5.1.5 (#7387)

6 years agoLINT fix
Loic Blot [Tue, 29 May 2018 20:22:14 +0000 (22:22 +0200)]
LINT fix

6 years agoRename some keys for clarity (#7384)
Wuzzy [Tue, 29 May 2018 16:39:37 +0000 (18:39 +0200)]
Rename some keys for clarity (#7384)

6 years agoAdd crossview support (#7361)
otdav33 [Tue, 29 May 2018 16:38:58 +0000 (12:38 -0400)]
Add crossview support (#7361)