Commit Graph

10396 Commits

Author SHA1 Message Date
x2048
81bfc9c7a2
Resize hotbar immediately before drawing (#12930) 2022-11-09 11:57:55 -05:00
Abdou-31
d1b80b462e
Fix typos and en_US/en_GB inconsistency in various files (#12902) 2022-11-09 11:57:19 -05:00
Tamara Schmitz
6191bafcad
Dockerfile: refactoring and addition of entrypoint (#12939)
Previously source files were copied first, then build dependencies were
installed, then libraries cloned and built.
This was reordered to be:
1. install dependencies
2. clone and build libraries
3. Pull in minetest source and minetest_game
4. Build minetest

In addition the peristent volumes are now declared.
Also an entrypoint added making it possible to append command line
parameters.
2022-11-08 16:34:58 +01:00
Loïc Blot
322c8cf270
Reduce exposure of various internals (#12885)
* refactoring(StaticObjectList): don't expose m_active and m_stored anymore

This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper

* refactoring(MapBlock): reduce a bit exposed m_active_blocks variable

* refactoring: MapBlock::m_node_timers is now private

We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock.

It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning

* refactoring(Server): fix duplicated function for add/remove node

* refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code

* refactoring(ShadowRenderer) + perf: code quality  + increase performance

* All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug
* Drop clientmap lookup from shadowrendered, just use directly its
  pointer and forbid to push it in the generic list
* Reduce memory pressure on the renderShadowObject by preventing
  deallocating and reallocating multiple vectors on each node

* refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects

It's not complete as some parts of the code are pretty nested, but it's better than before :)

* fix: better working on new functions & drop unwanted 2 lines

Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>

Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-11-03 17:35:31 +01:00
x2048
957a3e52fe Return correct variable when debugging bloom.
Fixes #12922
2022-11-03 08:43:31 +01:00
x2048
9b24041394
Improve bloom effect (#12916)
* Remove the built-in exposure factor of 2.5
* Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom)
* Add luminance scaling for bloom layer to simulate HDR
* Add setting to control bloom strength
2022-11-02 09:09:48 +01:00
Muhammad Rifqi Priyo Susanto
fb3085a2c5
Android: Increase target/compiled SDK version to 32 (#12911)
Build Tools, NDK, and Gradle are also updated.
Repositories is changed from jcenter() to mavenCentral().
2022-10-31 14:19:30 +01:00
Muhammad Rifqi Priyo Susanto
987277de52
Send crosshair setting after the touch screen GUI has been initialized (#12910) 2022-10-31 14:17:50 +01:00
Lars Mueller
88af36dd10 Fix node placement regression 2022-10-31 14:17:28 +01:00
x2048
260de1c2b5
Enable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904) 2022-10-30 16:54:06 +01:00
x2048
485b3b1203 Add comments explaining use of entity glow 2022-10-30 16:53:45 +01:00
x2048
bf1cc1bb84 Apply entity glow before translating to color space 2022-10-30 16:53:45 +01:00
x2048
3e7ee499d6 Always add increment when getting node interior light 2022-10-30 16:53:45 +01:00
x2048
a075d83752 Use the same light level for non-solid draw types as for solid 2022-10-30 16:53:45 +01:00
DS
fcd670e6f7
Add a worlds_here.txt file in the worlds folder and update .gitignore (#12720) 2022-10-30 16:53:31 +01:00
Lars Müller
077627181e
Allow rotating entity selectionboxes (#12379) 2022-10-30 16:53:14 +01:00
lhofhansl
b829231992
Fix incorrect culling introduced by ##12710 (#12887) 2022-10-28 09:52:54 -07:00
lhofhansl
9aaed75eea
Safety check the map's blocksize (#12895) 2022-10-27 19:31:42 -07:00
x2048
88820cd31c
Shadow list improvements (#12898)
* Remove redundant checks when attaching SM texture to entities.
  Some of the checks were broken, leading to crashes when shadow intensity is set to 0
* Avoid memory leak in shadow casters list when wield mesh changes item stacks
2022-10-26 22:26:09 +02:00
Jean-Patrick Guerrero
16266397ed
GUIInventoryList: Keep item size while moving (#12896) 2022-10-24 13:58:56 +02:00
Wuzzy
02c293ec63
Fix some outdated stuff about falling node docs 2022-10-23 21:59:24 +02:00
Jude Melton-Houghton
e86d23daed
Check sizeof(int) and sizeof(size_t) 2022-10-23 21:59:12 +02:00
Wuzzy
0a82cb4072 DevTest: Colorize 2 nodebox nodes 2022-10-23 21:58:56 +02:00
Wuzzy
7a8ac00f9c DevTest: Cleanup callback logging 2022-10-23 21:58:56 +02:00
Wuzzy
9e186a42bd DevTest: Fix rendering of 2 texture test nodes 2022-10-23 21:58:56 +02:00
Wuzzy
c73d79841c DevTest: More node textures to tell them apart 2022-10-23 21:58:56 +02:00
Wuzzy
11d1a9cc37 DevTest: Use 4dir for chests 2022-10-23 21:58:56 +02:00
Wuzzy
9f11753930 DevTest: Restore callback item descriptions 2022-10-23 21:58:56 +02:00
Wuzzy
fd1930142e DevTest: Fix callback item textures 2022-10-23 21:58:56 +02:00
Wuzzy
a852ebe993 Remove credits for 2 images no longer in use 2022-10-23 21:58:56 +02:00
Wuzzy
0152d39215 DevTest: Refactor testhud features 2022-10-23 21:58:56 +02:00
Wuzzy
c761aa268d DevTest: Move 2 HUD commands to testhud & improve 2022-10-23 21:58:56 +02:00
Wuzzy
72b83acadc DevTest: No use privatizer on chest of everything 2022-10-23 21:58:56 +02:00
Wuzzy
998e50725c DevTest: Remove experimental mod 2022-10-23 21:58:56 +02:00
Wuzzy
a23701b5e6 DevTest: Move detached inv tests to chest mod 2022-10-23 21:58:56 +02:00
Wuzzy
c1e732448c DevTest: /test_place_node skips dummy/cb nodes 2022-10-23 21:58:56 +02:00
Wuzzy
23ef0d0916 DevTest: Clean up callback textures 2022-10-23 21:58:56 +02:00
Wuzzy
2da92ed81e DevTest: Move callback entities to callbacks mod 2022-10-23 21:58:56 +02:00
Wuzzy
cb7b96fc90 DevTest: Move callback items to callbacks mod 2022-10-23 21:58:56 +02:00
Wuzzy
68df0fb2ea DevTest: Move experimental items to other mods 2022-10-23 21:58:56 +02:00
Wuzzy
3a7fffc587 DevTest: Move more logging to log mod 2022-10-23 21:58:56 +02:00
Wuzzy
48530ccbc0 DevTest: Move benchmark commands to new mod 2022-10-23 21:58:56 +02:00
Wuzzy
6b9984b7e7 DevTest: Move /test_place_nodes to testnodes mod 2022-10-23 21:58:56 +02:00
Wuzzy
97a80b4816 DevTest: Move chat command logging to separate mod 2022-10-23 21:58:56 +02:00
Jude Melton-Houghton
8f1593e4e8
Add VoxelArea() constructor (#12886) 2022-10-22 08:05:45 -04:00
Abdou-31
7e11b8eb72
Fix typos and en_US/en_GB inconsistency in files inside doc directory (#12882) 2022-10-21 17:12:39 +02:00
Jude Melton-Houghton
c78d565e01 Fix use of unassigned global "check" 2022-10-21 17:12:21 +02:00
Riceball LEE
8bdedd2bcf
guiChatConsole: fix the unicode characters crowded together on prompt (#12867)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-10-21 17:12:07 +02:00
DS
7153cb8a0b
Fix formspec focus (#12795) 2022-10-21 17:11:41 +02:00
sfan5
9f0d88407d
Revise bump_version.sh script to address shortcomings (#12789) 2022-10-21 17:09:44 +02:00