Commit Graph

20 Commits

Author SHA1 Message Date
Jordan
705df34c12
fix: create new biome paletted container when writing (#2791)
- resizing a paletted container copy alters the original paletted container
 - copy is not clone
 - fixes #2790
2024-06-20 20:49:16 +02:00
dordsor21
49ac08d5b4
Revert "Remove self-refraction-check"
This reverts commit 2eb6b5a12306cc2dc7cfc35e8c03f38ac8f7067c.
2024-06-15 20:53:01 +01:00
Jordan
af83b2f9c9
fix: improve biome setting to avoid writing directly to chunk (#2757)
* fix: improve biome setting to avoid writing directly to chunk

 - Removes possibility of writing to the LevelChunkSection biomes PalettedContainer whilst it is being read for sending packets
 - I believe this occured mostly on clipboard operations where blocks are written before biomes, so chunks are being sent whilst writing biomes
 - This would explain why the error reported in the below issue (and others) is/was so rare
 - Of course I could be completely wrong about all of this, but given the line in LevelChunkSection#write that the error seems to consistently occur on is when writing biomes to the packet, and that the only place I can find in FAWE where we write to a "live" PalettedContainer is for biomes, I am reasonably confident that this is the cause
 - Should address #2729

* Remove self-refraction-check
2024-06-15 13:08:42 +02:00
Jordan
9843bb0188
chore: address deprecations from new records (#2768)
* Category should implement Keyed
2024-06-12 15:00:40 +02:00
Jordan
62297f9479
refactor: adjust chunk sending (#2770)
- synchronise on the chunk GET object (when available)
 - kick it off to be run at some point on the main server thread
2024-06-10 19:12:31 +01:00
dordsor21
36d2c85fdb chore: address deprecations in vector classes 2024-05-31 18:52:49 +02:00
Jordan
033b8e35d2
fix: always set createCopy status on chunk get as chunks are cached (#2567)
- fixes #2539
2024-02-02 18:06:57 +01:00
Pierre Maurice Schwang
ea6bbecc32
Track paperweight-userdev versions with renovate (#2548)
* fix: editorconfig file selectors

* chore/ci: add renovate checks for paperweight-userdev
2024-01-22 19:14:10 +01:00
Alexander Brandes
8496ddf5b8
Release 2.8.3 2023-12-08 07:37:23 +01:00
Alexander Brandes
53ec728f97
Update paperweight adapters 2023-11-25 22:43:22 +01:00
Hannes Greule
c0a2eef648
Reuse generateTree code across versions (#2482) 2023-11-21 17:26:11 +00:00
Alexander Brandes
1f8976b20e
Update Paperweight 2023-10-31 21:23:47 +01:00
Hannes Greule
6bd1382872
Reuse starlight relighting code across versions (#2474) 2023-10-31 21:00:46 +01:00
Hannes Greule
256ef74452
Cleanup rawtypes warnings in relighting code (#2472)
remove unneeded generic type
2023-10-26 21:14:27 +02:00
dordsor21
0566bd359e
fix cursed 1.20.2 adapters
...what even how did this build??
2023-10-24 16:46:20 +01:00
Jordan
f5803a09f6
fix: vastly superier handling of queue chunks (#2461)
- remove ChunkHolder locking concept as this is no longer needed
 - previously we obtained the copy from chunk GET on finalize, meaning the copy could be replaced by a "newer" one (bad)
 - work around this issue by introducing concept of "unique" keys to map chunk GET copies to
 - correctly handle resetting of various chunk-related classes to actually allow pooling to work
 - remove chunks as they are submitted when flushing a SingleThreadQueueExtenting
2023-10-22 10:04:19 +00:00
Jordan
9489e5448f
fix: there is no need to synchronise chunk sending to the chunk GET instance (#2463) 2023-10-22 09:01:44 +02:00
Jordan
c6a9673b4b
fix: avoid tripping async catcher when getting entity from chunk (#2464) 2023-10-18 14:30:22 +01:00
Alexander Brandes
d0d97ce4ca
Update paperweight 2023-10-09 17:58:28 +02:00
Alexander Brandes
45b60f4929
Add support for 1.20.2 (#2431)
* Update to 1.20.2

* Update paperweight

---------

Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
2023-09-29 20:00:58 +00:00