oweals/minetest.git
4 years agoTranslated using Weblate (Swedish)
Mattias Münster [Sun, 27 Oct 2019 15:07:56 +0000 (15:07 +0000)]
Translated using Weblate (Swedish)

Currently translated at 32.7% (417 of 1274 strings)

4 years agoTranslated using Weblate (Italian)
Jacques Lagrange [Mon, 28 Oct 2019 10:40:29 +0000 (10:40 +0000)]
Translated using Weblate (Italian)

Currently translated at 96.9% (1234 of 1274 strings)

4 years agoTranslated using Weblate (Hungarian)
Ács Zoltán [Mon, 28 Oct 2019 10:54:35 +0000 (10:54 +0000)]
Translated using Weblate (Hungarian)

Currently translated at 61.9% (788 of 1274 strings)

4 years agoTranslated using Weblate (Portuguese)
ssantos [Sun, 27 Oct 2019 16:48:33 +0000 (16:48 +0000)]
Translated using Weblate (Portuguese)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoTranslated using Weblate (Japanese)
BreadW [Sun, 27 Oct 2019 13:31:15 +0000 (13:31 +0000)]
Translated using Weblate (Japanese)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoTranslated using Weblate (German)
Wuzzy [Mon, 28 Oct 2019 00:34:23 +0000 (00:34 +0000)]
Translated using Weblate (German)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoTranslated using Weblate (German)
nautilusx [Sun, 27 Oct 2019 13:34:27 +0000 (13:34 +0000)]
Translated using Weblate (German)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoTranslated using Weblate (Turkish)
monolifed [Sun, 27 Oct 2019 21:50:06 +0000 (21:50 +0000)]
Translated using Weblate (Turkish)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoTranslated using Weblate (Turkish)
Oguz Ersen [Sun, 27 Oct 2019 13:16:37 +0000 (13:16 +0000)]
Translated using Weblate (Turkish)

Currently translated at 100.0% (1274 of 1274 strings)

4 years agoFix find_path for newer jsoncpp installations
William Breathitt Gray [Sat, 16 Nov 2019 18:14:24 +0000 (13:14 -0500)]
Fix find_path for newer jsoncpp installations

The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: https://github.com/minetest/minetest/issues/9119

4 years agoFix LocalPlayer-bound sound playback broken by 81c2370
SmallJoker [Thu, 5 Dec 2019 19:35:31 +0000 (20:35 +0100)]
Fix LocalPlayer-bound sound playback broken by 81c2370

4 years agoFix item eat sound not played if last item (#9239)
Wuzzy [Tue, 24 Dec 2019 18:12:46 +0000 (18:12 +0000)]
Fix item eat sound not played if last item (#9239)

4 years agoFix spaces breaking formspec_version[] tag
rubenwardy [Mon, 9 Dec 2019 21:05:07 +0000 (21:05 +0000)]
Fix spaces breaking formspec_version[] tag

4 years agoUse a safer implementation of gsub in core.chat_format_message (#9133)
ANAND [Mon, 25 Nov 2019 19:03:34 +0000 (00:33 +0530)]
Use a safer implementation of gsub in core.chat_format_message (#9133)

This search-and-replace implementation does not use Lua pattern-matching

4 years agoRework packet receiving in ServerThread
sfan5 [Thu, 14 Nov 2019 16:38:15 +0000 (17:38 +0100)]
Rework packet receiving in ServerThread

Notably it tries to receive all queued packets
between server steps, not just one.

4 years agoFix build issue due to conflicting s64 type definitions (#9064)
Dmitry Marakasov [Wed, 23 Oct 2019 18:28:55 +0000 (21:28 +0300)]
Fix build issue due to conflicting s64 type definitions (#9064)

See comment in irrlichttypes.h and https://sourceforge.net/p/irrlicht/bugs/433/

4 years agoFormspecs: Reset version number on rebuild
SmallJoker [Sun, 20 Oct 2019 10:44:52 +0000 (12:44 +0200)]
Formspecs: Reset version number on rebuild

4 years agoContinue with 5.1.1-dev
rubenwardy [Thu, 26 Dec 2019 17:09:21 +0000 (17:09 +0000)]
Continue with 5.1.1-dev

5 years agoAdd arm64-v8a but it's not sufficient for 64bit build
Loic Blot [Sat, 9 Nov 2019 11:50:53 +0000 (12:50 +0100)]
Add arm64-v8a but it's not sufficient for 64bit build

5 years agoBump to version code 25
Loic Blot [Sat, 9 Nov 2019 10:37:46 +0000 (11:37 +0100)]
Bump to version code 25

5 years agoAndroid: build fixes & compat fixes
MoNTE48 [Wed, 6 Nov 2019 23:39:39 +0000 (00:39 +0100)]
Android: build fixes & compat fixes

5 years agoMerge remote-tracking branch 'origin/stable-5' into HEAD
sfan5 [Sat, 12 Oct 2019 13:59:36 +0000 (15:59 +0200)]
Merge remote-tracking branch 'origin/stable-5' into HEAD

5 years agoBump version to 5.1.0 5.1.0
sfan5 [Sat, 12 Oct 2019 13:48:58 +0000 (15:48 +0200)]
Bump version to 5.1.0

5 years agoUpdate minetest.conf.example
updatepo.sh [Wed, 9 Oct 2019 20:03:50 +0000 (22:03 +0200)]
Update minetest.conf.example

5 years agoUpdate translation strings
updatepo.sh [Wed, 9 Oct 2019 20:03:21 +0000 (22:03 +0200)]
Update translation strings

5 years agoUpdate from Weblate (hacky)
Translators [Wed, 9 Oct 2019 20:02:28 +0000 (22:02 +0200)]
Update from Weblate (hacky)

5 years agoFix isDead()/autoforward crash (#9031)
Paramat [Wed, 9 Oct 2019 18:39:50 +0000 (19:39 +0100)]
Fix isDead()/autoforward crash (#9031)

Crash occurred in singleplayer when leaving a world with
autoforward enabled then re-entering a world.

5 years agoContentCAO: Fix segfault on quit (attached)
SmallJoker [Wed, 9 Oct 2019 17:54:15 +0000 (19:54 +0200)]
ContentCAO: Fix segfault on quit (attached)

5 years agoRevert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)
ANAND [Tue, 8 Oct 2019 18:36:56 +0000 (00:06 +0530)]
Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)

Comment out the if statement that prevents sending TOSERVER_PLAYERPOS if the player is dead.

5 years agoFix upright_sprite lighting when colors are set
sfan5 [Sun, 6 Oct 2019 11:45:31 +0000 (13:45 +0200)]
Fix upright_sprite lighting when colors are set

fixes #9020

5 years agoRevert "Fix the bgcolor formspec element (#8716)" (#9018)
SmallJoker [Sun, 6 Oct 2019 12:50:45 +0000 (14:50 +0200)]
Revert "Fix the bgcolor formspec element (#8716)" (#9018)

This reverts commit 1db3d252cff9e8d61fecf1052d7497813851da51.
Temporary solution until a compatible solution is found to define both - formspec and fullscreen backgrounds.

5 years agoFix warnings in guiButton.h
sfan5 [Sat, 5 Oct 2019 15:13:50 +0000 (17:13 +0200)]
Fix warnings in guiButton.h

5 years agoMerge pull request #8166 from Warr1024/fix7020
Warr1024 [Sat, 5 Oct 2019 13:46:57 +0000 (09:46 -0400)]
Merge pull request #8166 from Warr1024/fix7020

Fix (or workaround?) for 'Falling nodes with node inventory cause crash when unloaded'

5 years agoFix unwanted detaching when damage = 0
Jacob Lifshay [Sun, 29 Sep 2019 02:30:58 +0000 (19:30 -0700)]
Fix unwanted detaching when damage = 0

5 years agoAttachments: Fix attachments to temporary removed objects (#8989)
SmallJoker [Wed, 2 Oct 2019 17:11:27 +0000 (19:11 +0200)]
Attachments: Fix attachments to temporary removed objects (#8989)

Does not clear the parent's attachment information when the child is deleted locally.
Either it was removed permanently, or just temporary - we don't know, but it's up to the server to send a *detach from child" packet for the parent.

5 years agoREADME: Add dependencies for Arch Linux (#8998)
James Tobin [Tue, 1 Oct 2019 17:09:59 +0000 (13:09 -0400)]
README: Add dependencies for Arch Linux (#8998)

Added Arch Linux dependency list (including base-devel which covers many of them)

5 years agoAll Settings: Set min limit for crtitical settings (#9000)
Wuzzy [Tue, 1 Oct 2019 17:09:37 +0000 (19:09 +0200)]
All Settings: Set min limit for crtitical settings (#9000)

5 years agoDocument node drop tool filtering by string matching as deprecated (#9009)
Paramat [Mon, 30 Sep 2019 20:34:43 +0000 (21:34 +0100)]
Document node drop tool filtering by string matching as deprecated (#9009)

5 years agoTextures: Load base pack only as last fallback (#8974)
SmallJoker [Sun, 29 Sep 2019 17:57:29 +0000 (19:57 +0200)]
Textures: Load base pack only as last fallback (#8974)

5 years agolabel[]: Fix broken colors since 2c9edef
SmallJoker [Sun, 29 Sep 2019 12:52:21 +0000 (14:52 +0200)]
label[]: Fix broken colors since 2c9edef

5 years agoMove Quicktune code to util/ (#8871)
ANAND [Sun, 29 Sep 2019 11:41:13 +0000 (17:11 +0530)]
Move Quicktune code to util/ (#8871)

5 years agoFix error message caused by adding new parameter to background (#8922)
rubenwardy [Sun, 29 Sep 2019 11:40:59 +0000 (12:40 +0100)]
Fix error message caused by adding new parameter to background (#8922)

Adds background9[] element to keep backwards compatibility in formspec prepends.

5 years agoAllow grep-ing for on_grant and on_revoke (#8958)
DS [Sun, 29 Sep 2019 11:40:15 +0000 (13:40 +0200)]
Allow grep-ing for on_grant and on_revoke (#8958)

Just two code comments are added.

5 years agoAll settings: Fix missing flags checkbox caused by 'possible flags' order (#8997)
Muhammad Rifqi Priyo Susanto [Fri, 27 Sep 2019 18:13:08 +0000 (01:13 +0700)]
All settings: Fix missing flags checkbox caused by 'possible flags' order (#8997)

Previously, the 'rivers' checkbox was missing for mgcarpathian, caused by the 'possible flags' order: 'caverns,nocaverns,rivers,norivers'.
Also reorder mgcarpathian 'possible flags', but only for consistency.

5 years agoSimple shader fixes. (#8991)
lhofhansl [Thu, 26 Sep 2019 20:57:39 +0000 (13:57 -0700)]
Simple shader fixes. (#8991)

1. Pass current camera offset to shader, so shader have access to the global coordinates
2. Pass animation timer to fragment shader. C++ code is already there, just wasn't declared in the shader
3. Delay animation timer wrap-around (from 100s to about 16 minutes)

5 years agoAutomatically enable depends of mods when enabling the mods in the world config menu...
HybridDog [Thu, 26 Sep 2019 19:03:54 +0000 (21:03 +0200)]
Automatically enable depends of mods when enabling the mods in the world config menu (#3473)

5 years agoFix some reference counters (memleak) (#8981)
SmallJoker [Tue, 24 Sep 2019 17:05:28 +0000 (19:05 +0200)]
Fix some reference counters (memleak) (#8981)

Fix some reference counters (memleak)
Map::dispatchEvent: Allocation safety using references

5 years agoFix broken build
sfan5 [Sun, 22 Sep 2019 22:28:26 +0000 (00:28 +0200)]
Fix broken build

The variable name changed but this didn't cause merge conflicts, so it wasn't caught before.

5 years agoRename "private messages" to "direct messages" (#8971)
Hugo Locurcio [Sun, 22 Sep 2019 20:48:36 +0000 (22:48 +0200)]
Rename "private messages" to "direct messages" (#8971)

These messages can be read by server administrators, which makes them
not actually private.

5 years agoMove the code for meta formspec into bool Game::nodePlacement(const ItemDefinition...
DS-Minetest [Thu, 19 Sep 2019 17:50:15 +0000 (19:50 +0200)]
Move the code for meta formspec into bool Game::nodePlacement(const ItemDefinition &selected_def,

5 years agoPunchwear (improved) (#8959)
sfan5 [Sun, 22 Sep 2019 20:12:21 +0000 (22:12 +0200)]
Punchwear (improved) (#8959)

5 years agoFix AreaStore's IDs persistence (#8888)
SmallJoker [Sat, 21 Sep 2019 15:54:52 +0000 (17:54 +0200)]
Fix AreaStore's IDs persistence (#8888)

Improve documentation
Read old formats
Fix free ID function. Return first gap in map

5 years agoWieldhand: Specify which ItemStack to use (#8961)
SmallJoker [Sat, 21 Sep 2019 09:44:24 +0000 (11:44 +0200)]
Wieldhand: Specify which ItemStack to use (#8961)

Makes 'get_wield_item' to return the "main" ItemStack

5 years agoAdd support for per-player FOV overrides and multipliers
Anand S [Sun, 15 Jul 2018 00:26:30 +0000 (05:56 +0530)]
Add support for per-player FOV overrides and multipliers

5 years agoRemove incorrect MutexAutoLock
sfan5 [Thu, 19 Sep 2019 14:39:57 +0000 (16:39 +0200)]
Remove incorrect MutexAutoLock

The line declared a variable "m_con" instead of locking m_con.
getClient() doesn't need this anyway, so remove it.

5 years agoTrigger on_place in many situations even if prediction failed
DS-Minetest [Sat, 29 Jun 2019 15:06:58 +0000 (17:06 +0200)]
Trigger on_place in many situations even if prediction failed

5 years agoAlso print help commands to chat for server terminal (#8869)
Tim Myers [Wed, 18 Sep 2019 22:37:56 +0000 (17:37 -0500)]
Also print help commands to chat for server terminal (#8869)

5 years agoFix misuse of AsyncTask (#8799)
Linjie Pan [Wed, 18 Sep 2019 22:37:06 +0000 (06:37 +0800)]
Fix misuse of AsyncTask (#8799)

5 years agoSettings: Prevent mutex deadlock in remove() (#7803)
SmallJoker [Wed, 18 Sep 2019 16:48:23 +0000 (18:48 +0200)]
Settings: Prevent mutex deadlock in remove() (#7803)

5 years agoInventory: Properly revert client predictions (#8945)
SmallJoker [Wed, 18 Sep 2019 16:47:09 +0000 (18:47 +0200)]
Inventory: Properly revert client predictions (#8945)

Caused by incremental inventory sending
Previously everything was overwritten by serializing the entire inventory

5 years agoImprove undersampling settings
Hugo Locurcio [Tue, 17 Sep 2019 04:13:17 +0000 (06:13 +0200)]
Improve undersampling settings

The setting now accepts values between 1 and 8 in the
Advanced Settings menu.
Values 0 and 1 now behave the same way (setting it to 1 won't
disable MSAA anymore), so there's no need to expose 0 as a value.

This closes #8939.

5 years agoInventory: Undo prediction on drop
SmallJoker [Tue, 17 Sep 2019 17:02:01 +0000 (19:02 +0200)]
Inventory: Undo prediction on drop

5 years agoFix the bgcolor formspec element (#8716)
DS [Sun, 15 Sep 2019 16:14:31 +0000 (18:14 +0200)]
Fix the bgcolor formspec element (#8716)

5 years agoFix formspec version backup in prepends losing data
rubenwardy [Sun, 15 Sep 2019 15:56:11 +0000 (16:56 +0100)]
Fix formspec version backup in prepends losing data

5 years agoDungeons: Clean up parameters, improve structure variety (#8918)
Paramat [Sat, 14 Sep 2019 22:02:07 +0000 (23:02 +0100)]
Dungeons: Clean up parameters, improve structure variety (#8918)

While preserving the general character of dungeon structure.
Slightly increase the range of standard room horizontal size, while
preserving the average horizontal size.
Return to classic maximum large room size of 16x16x16.
Make 1 in 4 dungeons have a 1 in 8 chance for each room being 'large',
making multiple large rooms possible for the first time.
Make 1 in 8 dungeons allow diagonal corridors, to make these a little
more common.
Make corridor width vary from 1 to 2, but forced to 2 if diagonal
corridors are allowed, to make them passable.
Add some comments.

5 years agoBuilt-in formspecs: Force version 1
SmallJoker [Sat, 14 Sep 2019 18:31:07 +0000 (20:31 +0200)]
Built-in formspecs: Force version 1

5 years agoclient.h: Add missing const's
ANAND [Fri, 13 Sep 2019 06:04:06 +0000 (11:34 +0530)]
client.h: Add missing const's

5 years agoLocalPlayer: Fix code-style
ANAND [Wed, 21 Aug 2019 14:23:48 +0000 (19:53 +0530)]
LocalPlayer: Fix code-style

5 years agoclient.cpp: Fix code-style in Client::sendPlayerPos
ANAND [Wed, 21 Aug 2019 13:08:41 +0000 (18:38 +0530)]
client.cpp: Fix code-style in Client::sendPlayerPos

5 years agoFix LocalPlayer::isDead always returning false if player is immortal
ANAND [Wed, 21 Aug 2019 13:04:47 +0000 (18:34 +0530)]
Fix LocalPlayer::isDead always returning false if player is immortal

5 years agoSend ActiveObjects once right after Init2
ANAND [Sun, 25 Aug 2019 00:54:21 +0000 (06:24 +0530)]
Send ActiveObjects once right after Init2

5 years agoFormspecs: Introduce formspec_version to mods
SmallJoker [Tue, 10 Sep 2019 19:18:42 +0000 (21:18 +0200)]
Formspecs: Introduce formspec_version to mods

5 years agoCSM: Fix itemstack:get_meta() 'metadata' indexing error
SmallJoker [Wed, 26 Jun 2019 17:37:14 +0000 (19:37 +0200)]
CSM: Fix itemstack:get_meta() 'metadata' indexing error

5 years agoLoad CSM environment after the restrictions are known
SmallJoker [Tue, 25 Jun 2019 19:18:08 +0000 (21:18 +0200)]
Load CSM environment after the restrictions are known

Safety-guards for CSM callbacks to abort on a bad implementation
Only run callbacks when the mods are loaded (and with it: builtin)

Duplication checks inside constructors

5 years agoInventoryManager: Fix virtual function overload warning
SmallJoker [Mon, 9 Sep 2019 18:35:45 +0000 (20:35 +0200)]
InventoryManager: Fix virtual function overload warning

5 years agoSend cumulated inventory changes only each step (#8856)
SmallJoker [Sun, 25 Aug 2019 08:55:27 +0000 (10:55 +0200)]
Send cumulated inventory changes only each step (#8856)

Applies to player and detached inventories

5 years agoUpdate minetest.conf.example
updatepo.sh [Sun, 8 Sep 2019 07:21:59 +0000 (09:21 +0200)]
Update minetest.conf.example

5 years agoUpdate translation strings
updatepo.sh [Sun, 8 Sep 2019 07:21:36 +0000 (09:21 +0200)]
Update translation strings

5 years agoUpdate from Weblate
Translators [Sun, 8 Sep 2019 07:19:17 +0000 (09:19 +0200)]
Update from Weblate

5 years agoDungeons: Remove non-functional 'projecting dungeons' setting (#8897)
Paramat [Sun, 8 Sep 2019 16:51:34 +0000 (17:51 +0100)]
Dungeons: Remove non-functional 'projecting dungeons' setting (#8897)

5 years agoLua API documentation: Various fixes (#8914)
SmallJoker [Sun, 8 Sep 2019 16:43:49 +0000 (18:43 +0200)]
Lua API documentation: Various fixes (#8914)

Remove unusable 'minetest.setting_*' from client_lua_api.txt
lua_api.txt:
- Define the 'mod.conf' format
- More precise 'settingtypes.txt' format reference
- Document special sound files 'player_*damage'
- Group, sort and add 'not_in_creative_inventory' special group
- Define the 'Settings' format
- Warning about incorrect byte saving in 'StorageRef'
- Note about non-persistent player definitions fields
- Better 'leveldiff' and 'level' group description

5 years agolua_api.txt: Improve privilege definition (#8912)
ANAND [Sun, 8 Sep 2019 10:34:44 +0000 (18:34 +0800)]
lua_api.txt: Improve privilege definition (#8912)

5 years agoMove debug.txt after it grows too big (#8904)
HybridDog [Sat, 7 Sep 2019 17:38:54 +0000 (19:38 +0200)]
Move debug.txt after it grows too big (#8904)

Before opening the file for writing, its file size is tested. If it exceeds 50 MB, it is moved to debut.txt.1, otherwise the log is appended to the old messages. An old debut.txt.1 is removed if it already exists.

5 years agolabel[]: Fix cut-off translated text
SmallJoker [Sat, 7 Sep 2019 09:15:12 +0000 (11:15 +0200)]
label[]: Fix cut-off translated text

5 years agoFix Irrlicht 1.9 support
sfan5 [Fri, 6 Sep 2019 16:29:29 +0000 (18:29 +0200)]
Fix Irrlicht 1.9 support

5 years agodoc/client_lua_api: Clarify how client side api and mods start (#8822)
Paul m. p. P [Thu, 5 Sep 2019 11:06:22 +0000 (13:06 +0200)]
doc/client_lua_api: Clarify how client side api and mods start (#8822)

5 years agoForce item entities out of solid nodes (simpler) (#8885)
sfan5 [Wed, 4 Sep 2019 20:21:40 +0000 (22:21 +0200)]
Force item entities out of solid nodes (simpler) (#8885)

5 years agoFix Inventory::moveItemSomewhere()
sfan5 [Tue, 3 Sep 2019 14:36:46 +0000 (16:36 +0200)]
Fix Inventory::moveItemSomewhere()

5 years agoInventory: Handle removeItem leftovers (#8884)
SmallJoker [Mon, 2 Sep 2019 17:30:36 +0000 (19:30 +0200)]
Inventory: Handle removeItem leftovers (#8884)

5 years ago'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847)
Muhammad Rifqi Priyo Susanto [Sun, 1 Sep 2019 21:43:41 +0000 (04:43 +0700)]
'All Settings': Don't use checkboxes for 'no...' mapgen flags (#7847)

5 years agoVarious fixes to lua_api.txt (#8878)
DS [Sun, 1 Sep 2019 18:12:22 +0000 (20:12 +0200)]
Various fixes to lua_api.txt (#8878)

5 years agoparticles.cpp: Fix code-style
ANAND [Sat, 17 Aug 2019 06:39:40 +0000 (12:09 +0530)]
particles.cpp: Fix code-style

Mainly spacing and pointer placement

5 years agoclientobject.h: Fix code-style
ANAND [Fri, 16 Aug 2019 17:07:49 +0000 (22:37 +0530)]
clientobject.h: Fix code-style

5 years agoFix rotation of attached particlespawner
Pedro Gimeno [Fri, 9 Aug 2019 08:51:17 +0000 (14:21 +0530)]
Fix rotation of attached particlespawner

Co-authored-by: ANAND <ClobberXD@gmail.com>
5 years agoDocument world format version 28 (private nodemeta) (#8857)
DS [Sat, 31 Aug 2019 12:47:13 +0000 (14:47 +0200)]
Document world format version 28 (private nodemeta) (#8857)

5 years agoDocument luaentity pitch and roll in world format (#8864)
DS [Fri, 30 Aug 2019 17:40:32 +0000 (19:40 +0200)]
Document luaentity pitch and roll in world format (#8864)

5 years agoClarify docs regarding pointed_thing and get_pointed_thing_position (#8766)
Beha [Fri, 30 Aug 2019 17:40:08 +0000 (13:40 -0400)]
Clarify docs regarding pointed_thing and get_pointed_thing_position (#8766)

5 years agoVarious settingtypes.txt improvements (#8867)
Paramat [Wed, 28 Aug 2019 00:39:33 +0000 (01:39 +0100)]
Various settingtypes.txt improvements (#8867)

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.

5 years agoInventory: Fix missing setModified calls
SmallJoker [Sun, 25 Aug 2019 07:46:54 +0000 (09:46 +0200)]
Inventory: Fix missing setModified calls

Previously inv:remove_item and inv:set_list did not trigger an inventory update

5 years agoMapgen v6: Various mudflow code improvements and bugfixes (#8805)
Paramat [Sat, 24 Aug 2019 19:06:31 +0000 (20:06 +0100)]
Mapgen v6: Various mudflow code improvements and bugfixes  (#8805)

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.