aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847)Muhammad Rifqi Priyo Susanto2019-09-01
|
* Various fixes to lua_api.txt (#8878)DS2019-09-01
|
* particles.cpp: Fix code-styleANAND2019-08-31
| | | | Mainly spacing and pointer placement
* clientobject.h: Fix code-styleANAND2019-08-31
|
* Fix rotation of attached particlespawnerPedro Gimeno2019-08-31
| | | | Co-authored-by: ANAND <ClobberXD@gmail.com>
* Document world format version 28 (private nodemeta) (#8857)DS2019-08-31
|
* Document luaentity pitch and roll in world format (#8864)DS2019-08-30
|
* Clarify docs regarding pointed_thing and get_pointed_thing_position (#8766)Beha2019-08-30
|
* Various settingtypes.txt improvements (#8867)Paramat2019-08-28
| | | | | | | | | Improve 'readable' setting names for waving water settings. Change 'near plane' to 'near clipping plane'. Document physics settings. mgv6_spflags: Change 'new biome system' to 'snowbiomes flag' for clarity. Add missing 'noflat' flag to default flags.
* Inventory: Fix missing setModified callsSmallJoker2019-08-25
| | | | Previously inv:remove_item and inv:set_list did not trigger an inventory update
* Mapgen v6: Various mudflow code improvements and bugfixes (#8805)Paramat2019-08-24
| | | | | | | | | | | | | | | Calculate 'i' inside 'y' loop to avoid 'i' and 'y' becoming out of step due to the uses of 'continue'. Simplify calculation of 'p2d' when coordinates are inverted. Remove some unnecessary and unreliable 'index out of voxelmanip' checks. Move calculation of '&em' out of loops. For 'Loop further down until not air' code, use y coordinate to detect being out of voxelmanip, instead of checking index which did not detect that. Add and improve comments. Indent the 'for (;; y--) {' loop. Improve format and fix codestyle issues.
* fontengine: Fix non-gettext buildsSmallJoker2019-08-24
|
* Inventory: Send dirty lists where appropriate (#8742)SmallJoker2019-08-24
| | | | | This change reduces the amount of sent data towards clients. Inventory lists that are already known to the player are skipped, saving quite some data over time. Raises protocol version to 38 to ensure correct backwards-compatible code.
* Add ItemStack:get_description() to get tooltip (#8847)Paul Ouellette2019-08-24
|
* Improve occlusion culling in corridors with additional checksfan52019-08-24
|
* Restore approximate occlusion checksfan52019-08-24
| | | | While less precise, it worked better which is what matters in the end.
* Make Mapgen::spreadLight use a queue (#8838)DS2019-08-23
|
* Fix default hand definition not using wieldhand.pngWuzzy2019-08-23
|
* Occlusion: Check for light_propagates and do mapblock bounds checksSmallJoker2019-08-23
|
* Occlusion: Begin cleanupSmallJoker2019-08-23
|
* Revert "Don't send position update packet if player is dead"sfan52019-08-21
| | | | This reverts commit fb6f1fdcbe3ee2321cc33eb00f2c6da86744d00a.
* Add player sprite textures back into the engine as a fallback (#8823)Paramat2019-08-20
| | | | | | | 'player.png' and 'player_back.png' are hardcoded into the engine as the default appearence of the player object, so the textures should be present in the engine. This results in a functional fallback sprite player for when a game has no player appearence related code.
* lua_api.txt: Add link to Minetest Modding Book (#8826)ANAND2019-08-20
|
* remove_detached_inventory: Fix segfault during mod loadSmallJoker2019-08-20
|
* Don't send position update packet if player is deadANAND2019-08-20
|
* Disable autoforward if player is deadANAND2019-08-20
|
* Restore intended functionality to minimap markers (#8819)theviper1212019-08-19
|
* Find LuaJIT headers on vcpkgUnknown2019-08-18
| | | luajit headers were moved into a subdirectory to avoid conflicts with plain lua
* ClientInterface: Use recursive mutex to prevent freeze in on_newplayer() (#8808)SmallJoker2019-08-17
|
* Remove unused function in ReliablePacketBuffersfan52019-08-16
|
* Minor refactor of IncomingSplitBuffersfan52019-08-16
|
* Drop m_list_size from ReliablePacketBuffersfan52019-08-16
| | | | It's not required and, worse, can lead to bugs.
* Mapgen v6: Fix mudflow iteration and iterate twice (#8795)Paramat2019-08-15
| | | | | | | | | | In MapgenV6::flowMud(), the previous implementation of coordinate inversion caused the 2 inverted mudflow iterations (out of the 3 iterations) to not loop over the area, so only 1 non-inverted iteration occurred. Fix this bug but only iterate mudflow twice, as mapgen v6 has only had 1 iteration for many years. There is now a good balance of 1 non-inverted iteration and 1 inverted iteration.
* network: Stricter handling of split packetssfan52019-08-15
|
* network: Fix crash in ReliablePacketBuffer on mismatching packetssfan52019-08-15
| | | | | In the error condition the exception would be thrown before m_list_size is decremented, causing a nullptr dereference in e.g. popFirst().
* Fix undeclared global warning because of _ (#8798)DS2019-08-14
|
* Add function `minetest.read_schematic`upsilon2019-08-14
|
* Fix unnecessary exception use in 3 more methods (#8791)Jozef Behran2019-08-13
| | | | | | | | | | | | | | | | | | | | | | | | * Fix unnecessary exception use in Server::SendBlocks The code in this method calls getBlockNoCreate and then messes around with try...catch to skip blocks which are not in the memory. Additionally, it repeatedly calls m_env.getMap() inside this loop. Speed the code up by extracting the m_env.getMap() out of the loop and getting rid of the try...catch. * Fix unnecessary exception use in Server::SendBlock Another unnecessary try...catch is slowing down Server::SendBlock. Remove that to speed it up and get a nice side effect of simplifying the code in question. * Fix unnecessary exception use in MMVManip::initialEmerge Remove another unneeded exception usage from MMVManip::initialEmerge to speed that code up and simplify it but be careful to not remove the braces as there is a TimeTaker in use there.
* Fix unnecessary exception use in Map::getSectorXXX (#8792)Jozef Behran2019-08-13
| | | | | | | The Map::getSectorNoGenerate throws an exception but no other code is really dependent on that. Fix the odd instance of misuse in ClientMap::emergeSector and remove the exception throwing version of the method along with the "NoEx" suffixes in the names of these methods.
* Better F6 profiler (#8750)SmallJoker2019-08-13
| | | | | | | Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
* Fix unnecessary exception use in Map::isNodeUndergroundJozef Behran2019-08-13
| | | | | | | | | | The isNodeUnderground calls getBlockNoCreate which calls getBlockNoCreateNoEx and throws InvalidPositionException if the returned value is nullptr, which isNodeUnderground then catches to return "false". Remove the try..catch in isNodeUnderground by calling getBlockNoCreateNoEx instead of getBlockNoCreate and checking the returned value for nullptr.
* Fix compare between pointer and 0 in unittestsJozef Behran2019-08-13
| | | | | | Pointers shall be set to nullptr, not 0, according to the coding standards. By implication they shall be compared with nullptr, not 0, too. Fix this code to match that.
* Clear old item groups when they are overridden. (#8753)Beha2019-08-12
| | | | | | | This fixes overridden items keeping their old groups in the group to items mapping even after their groups have been changed in lua. It also prevents a more widespread issue where overriding an item will add its content ID *twice* to the mapping, resulting in odd behaviour in features such as ABMs.
* Add support for set_formspec_prepend in main menu (#8611)rubenwardy2019-08-12
|
* Handle multiple deserialization of a block's entitiesRogier2019-08-12
| | | | | | | | | | | | | | | | | This fix consists of two parts: - Clear the list of stored entities. This has no side-effects. - Catch the case where active entities exist and print a message. Clearing the active entitiy list has side-effects that should be handled. (those entities are known to the environment and to clients). As avoiding those side-effects is more complex, and as this problem is not expected to occur (with PR #4847 merged), there is no real incentive to implement this ATM. This issue was a contributing factor to bug #4217. With the other contributing factor removed (PR #4847), this commit makes sure this factor does not go unnoticed if it ever happens again.
* Update Gradle to 5.5.1 (#8771)hannesa22019-08-12
|
* Fix breakage of non-GLES2 setups (#8774)Jozef Behran2019-08-10
| | | | | | | | | | | The commit 526a9e4b66abaf83eb6b1aaa3e93375acd87b830 breaks the non-GLES2 setups because the code that is intended to handle that is behind "elseif()" which is interpreted as "elseif(false)" and thus the code never gets executed. Fix that by changing the offending line to else(). Additionally, to avoid breaking the server only build (which shall not have a dependency on GL/GLU/GLES at all), enclose the entire block code in if(BUILD_CLIENT).
* Fix some issues with minetest.clear_craft (#8712)Paul Ouellette2019-08-10
| | | | | | | | | | | * Fix some issues with minetest.clear_craft - Fix memory leak - Fix crafts with an output count not being cleared when clearing by input. - Fix recipe list being reversed when clearing by input. * Add CraftInput::empty()
* Merge pull request #8776 from osjc/FixGetNodeJozef Behran2019-08-10
| | | Finish getNode cleanup
* Add player knockback on punch to builtinsfan52019-08-10
|