1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
Commit graph

12797 commits

Author SHA1 Message Date
sfan5
46db688cc8 Implement support for array textures in GL driver
note: feature detection was not implemented in the legacy driver, but the code itself probably works.
2025-04-08 22:24:37 +02:00
sfan5
d5bf094f9a Prefer immutable texture storage when available 2025-04-08 22:24:37 +02:00
sfan5
427a7e4998 Split texture initialization code from upload 2025-04-08 22:24:37 +02:00
sfan5
9ff07df45e Fix GLES texture download to handle mipmaps and cubemap type 2025-04-08 22:24:37 +02:00
sfan5
38c3876c4e Drop support for storing mipmap data alongside IImage 2025-04-08 22:24:37 +02:00
sfan5
03affa1bbb Some minor code cleanups 2025-04-08 22:24:37 +02:00
Lars Müller
7689f1f0fd
Improve some warning messages (#15990) 2025-04-08 22:24:00 +02:00
Lars Müller
a3648b0b16
Add spatial index for objects (#14631) 2025-04-08 08:44:53 +02:00
cx384
bed36139db
Fix struct forward declaration 2025-04-07 01:38:32 +02:00
lhofhansl
6a71095655
Break liquid reflow scan early for all-air blocks (#15975)
Avoid scanning the a newly loaded block if it is all air and no liquid is flowing from above.
2025-04-05 11:01:39 -07:00
cx384
52b974184d
Move client code out of ItemDefManager (#15967) 2025-04-04 18:58:14 +02:00
cx384
a6d4cd7c15
Draw node animation for items (#15930) 2025-04-04 18:47:11 +02:00
Elias Åström
1db5a2f950
Add delay between punching and digging node (#15931) 2025-04-04 18:46:27 +02:00
Lars Müller
884f411387
Set CMAKE_POLICY_VERSION_MINIMUM=3.5 to make MSVC CI work again (#15978)
Co-authored-by: Josiah VanderZee <josiah_vanderzee@mediacombb.net>
2025-04-04 18:46:03 +02:00
grorp
66dedf1e21
lua_api.md: Mapblock-related and misc improvements (#15972)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: DS <ds.desour@proton.me>
2025-04-03 13:46:06 -04:00
grorp
7dbd3a0744
lua_api.md: More info in LBM run_at_every_load documentation (#15956) 2025-04-02 10:05:23 -04:00
sfan5
47c75b3294
ImageSource: restrict max dimensions to protect from integer overflows (#15965) 2025-04-01 19:12:37 +02:00
Jisk
0179021acc
lua_api.md: MAX_WORKING_VOLUME is now 150 million 2025-04-01 19:12:22 +02:00
Lars Müller
2569b50252
Deprecate some legacy item registration logic (#15950) 2025-04-01 19:12:00 +02:00
grorp
c30c94dfaa
Add server/client annotations to settingtypes.txt and make use of them (#15756) 2025-04-01 07:55:47 -04:00
lhofhansl
6724068659
Slight fix to #15949 to handle emerge queue full (#15960)
Partially restore the existing logic, and try to enqueue a block as before, if the queue is full it will be handled correctly.
2025-03-31 21:31:10 -07:00
sfan5
1281173e50 Use secure randomness to seed internal RNG 2025-03-30 18:17:19 +02:00
sfan5
785c042f1f Drop gzip support from CZipReader
This allowed reading concatenated gzip-compressed files as if they were an archive.
Aside from being generally uncommon we literally don't need this.
2025-03-30 18:17:19 +02:00
sfan5
ae0f955a0e Add nodiscard attribute to helper functions where it makes sense 2025-03-30 18:17:19 +02:00
sfan5
e6acc4e7ed Delete TestCAO 2025-03-30 18:17:19 +02:00
sfan5
2602d03b34 Split ABM/LBM from serverenvironment.cpp to own file 2025-03-30 18:17:19 +02:00
sfan5
dea95c7339 Reduce transitive includes by moving a class 2025-03-30 18:17:19 +02:00
sfan5
b146673c3d Remove old mystrtok_r for MinGW 2025-03-30 18:17:19 +02:00
sfan5
e73eed247e Apply some refactoring/cleanup to mainly util functions 2025-03-30 18:17:19 +02:00
sfan5
89e3bc8d56 Improve std::hash<SMaterial> implementation 2025-03-30 18:17:19 +02:00
wrrrzr
d7edf0b229
Set StartupWMClass in desktop file
see #15942
2025-03-30 18:17:10 +02:00
wrrrzr
4bc366b984
Refactor createShadowRenderer 2025-03-30 18:16:45 +02:00
cx384
41d43e8d95
Document server texture pack in texture_packs.md (#15951) 2025-03-30 18:16:34 +02:00
y5nw
4cd2273349
Refactor input handler (#15933) 2025-03-30 18:16:20 +02:00
SmallJoker
309c0a0cb6
Formspec: fix clamped scroll offset of scroll_containers larger than 1000px 2025-03-30 18:15:38 +02:00
cx384
882f132062 Document special items 2025-03-30 18:15:11 +02:00
cx384
af1ffce084 Improve hand override documentation 2025-03-30 18:15:11 +02:00
sfan5
a94c9a73ba Move all registration logic into core.register_item for consistency 2025-03-29 10:21:15 +01:00
sfan5
915446417d Improve warning message for registration table reuse 2025-03-29 10:21:15 +01:00
lhofhansl
8f8d7c4088
Check if a block is already in the emege queue before checking occlusion culling and trying to reemerge (#15949) 2025-03-28 11:31:54 -07:00
grorp
b0bc6ce637
TouchControls: Take FOV into account for camera movement (#15936) 2025-03-28 07:43:59 -04:00
lhofhansl
fbc525d683
Restore behavior of emergequeue_limit_total (#15947)
* And make sure `emergequeue_limit_total` is >= max(`emergequeue_limit_diskonly`, `emergequeue_limit_generate`)
2025-03-27 18:59:38 -07:00
sfan5
db15bc6466 Some more random code cleanups 2025-03-26 20:49:43 +01:00
sfan5
f63436c8d3 Add basic unittests for LBMManager 2025-03-26 20:49:43 +01:00
sfan5
7b746d21f9 Make sure generated blocks have their timestamp set
behavior change: newly generated blocks are no longer momentarily activated.
this shouldn't matter for anyone and did not consistently apply to all blocks anyway

addresses issue from #15902 for new maps(!)
2025-03-26 20:49:43 +01:00
sfan5
ed40ea010b Improve edge case handling in LBMManager 2025-03-26 20:49:43 +01:00
sfan5
3dca2cd26a Strip leading colon from LBM names 2025-03-26 20:49:43 +01:00
sfan5
71cd25a798 Preserve LBM ordering when running them
(broken in 811adf5d42)
2025-03-26 20:49:43 +01:00
sfan5
ea1e8797a3 Fix performance bug with applying LBMs 2025-03-26 20:49:43 +01:00
JosiahWI
8fc7bf2af4
Fix core.get_content_info docs and harden implementation (#15925) 2025-03-26 19:03:53 +01:00