aboutsummaryrefslogtreecommitdiff
path: root/src/craftdef.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-09-06Fix Irrlicht 1.9 supportsfan51-1/+3
2019-09-05doc/client_lua_api: Clarify how client side api and mods start (#8822)Paul m. p. P1-0/+10
2019-09-04Force item entities out of solid nodes (simpler) (#8885)sfan51-0/+91
2019-09-03Fix Inventory::moveItemSomewhere()sfan51-19/+5
2019-09-02Inventory: Handle removeItem leftovers (#8884)SmallJoker1-1/+5
2019-09-01'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847)Muhammad Rifqi Priyo Susanto3-21/+31
2019-09-01Various fixes to lua_api.txt (#8878)DS1-8/+15
2019-08-31particles.cpp: Fix code-styleANAND1-12/+17
Mainly spacing and pointer placement
2019-08-31clientobject.h: Fix code-styleANAND1-17/+16
2019-08-31Fix rotation of attached particlespawnerPedro Gimeno5-41/+44
Co-authored-by: ANAND <ClobberXD@gmail.com>
2019-08-31Document world format version 28 (private nodemeta) (#8857)DS1-1/+4
2019-08-30Document luaentity pitch and roll in world format (#8864)DS1-11/+14
2019-08-30Clarify docs regarding pointed_thing and get_pointed_thing_position (#8766)Beha1-1/+7
2019-08-28Various settingtypes.txt improvements (#8867)Paramat1-9/+36
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.
2019-08-25Inventory: Fix missing setModified callsSmallJoker1-1/+6
Previously inv:remove_item and inv:set_list did not trigger an inventory update
2019-08-24Mapgen v6: Various mudflow code improvements and bugfixes (#8805)Paramat1-91/+76
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.
2019-08-24fontengine: Fix non-gettext buildsSmallJoker1-1/+1
2019-08-24Inventory: Send dirty lists where appropriate (#8742)SmallJoker16-160/+193
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.
2019-08-24Add ItemStack:get_description() to get tooltip (#8847)Paul Ouellette6-22/+33
2019-08-24Improve occlusion culling in corridors with additional checksfan52-0/+75
2019-08-24Restore approximate occlusion checksfan52-27/+14
While less precise, it worked better which is what matters in the end.
2019-08-23Make Mapgen::spreadLight use a queue (#8838)DS2-20/+26
2019-08-23Fix default hand definition not using wieldhand.pngWuzzy1-0/+1
2019-08-23Occlusion: Check for light_propagates and do mapblock bounds checksSmallJoker3-34/+60
2019-08-23Occlusion: Begin cleanupSmallJoker3-46/+52
2019-08-21Revert "Don't send position update packet if player is dead"sfan51-6/+2
This reverts commit fb6f1fdcbe3ee2321cc33eb00f2c6da86744d00a.
2019-08-20Add player sprite textures back into the engine as a fallback (#8823)Paramat2-0/+0
'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.
2019-08-20lua_api.txt: Add link to Minetest Modding Book (#8826)ANAND1-0/+1
2019-08-20remove_detached_inventory: Fix segfault during mod loadSmallJoker1-1/+9
2019-08-20Don't send position update packet if player is deadANAND1-2/+6
2019-08-20Disable autoforward if player is deadANAND4-7/+12
2019-08-19Restore intended functionality to minimap markers (#8819)theviper1211-1/+1
2019-08-18Find LuaJIT headers on vcpkgUnknown1-1/+1
luajit headers were moved into a subdirectory to avoid conflicts with plain lua
2019-08-17ClientInterface: Use recursive mutex to prevent freeze in on_newplayer() (#8808)SmallJoker2-15/+15
2019-08-16Remove unused function in ReliablePacketBuffersfan52-9/+1
2019-08-16Minor refactor of IncomingSplitBuffersfan52-35/+60
2019-08-16Drop m_list_size from ReliablePacketBuffersfan52-20/+21
It's not required and, worse, can lead to bugs.
2019-08-15Mapgen v6: Fix mudflow iteration and iterate twice (#8795)Paramat1-12/+12
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.
2019-08-15network: Stricter handling of split packetssfan51-4/+11
2019-08-15network: Fix crash in ReliablePacketBuffer on mismatching packetssfan51-4/+4
In the error condition the exception would be thrown before m_list_size is decremented, causing a nullptr dereference in e.g. popFirst().
2019-08-14Fix undeclared global warning because of _ (#8798)DS1-0/+1
2019-08-14Add function `minetest.read_schematic`upsilon3-0/+93
2019-08-13Fix unnecessary exception use in 3 more methods (#8791)Jozef Behran2-16/+7
* 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.
2019-08-13Fix unnecessary exception use in Map::getSectorXXX (#8792)Jozef Behran3-25/+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.
2019-08-13Better F6 profiler (#8750)SmallJoker19-322/+254
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)
2019-08-13Fix unnecessary exception use in Map::isNodeUndergroundJozef Behran1-8/+2
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.
2019-08-13Fix compare between pointer and 0 in unittestsJozef Behran1-3/+3
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.
2019-08-12Clear old item groups when they are overridden. (#8753)Beha2-14/+36
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.
2019-08-12Add support for set_formspec_prepend in main menu (#8611)rubenwardy5-1/+31
2019-08-12Handle multiple deserialization of a block's entitiesRogier1-0/+9
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.