3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00
Commit graph

2751 Commits

Autor SHA1 Nachricht Datum
Hannes Greule
6a7aa96502
Allow lazy-loading chunk section data when using Vector API (#3035) 2024-12-24 13:19:36 +01:00
Pierre Maurice Schwang
84cba165fa
fix: spawner type in pattern (#3042)
* fix: try parsing special block data before blindly applying NBT

* Fix legacy block wrappers with new NBT API (#2361)

(cherry picked from commit 5b674745f17d8ede505857242e5240c6dbeebfd6)

---------

Co-authored-by: Maddy Miller <mnmiller1@me.com>
2024-12-24 13:19:20 +01:00
Hannes Greule
b95bcde152
Simplify heightmap calculation and avoid loading empty sections (#3045)
* Simplify heightmap calculation and avoid loading empty sections

* rename label
2024-12-24 13:18:41 +01:00
Pierre Maurice Schwang
74bb6e30d2
1.21.4 (#3021)
* Add the bundled data files

* feat: add 1.21.4 adapter

* Update the XTypes/XCategories files

Co-authored-by: Maddy Miller <mnmiller1@me.com>

* chore/fix: update isFullCube to actually check for shape not occlusion

* chore: remove forget packet

* chore: add block connection fixer to adapter

---------

Co-authored-by: Maddy Miller <mnmiller1@me.com>
2024-12-17 21:32:17 +01:00
Jordan
632b6934a8
feat: implement command to fix block connections (#2746)
* feat: implement command to fix block connections
 - closes #313

* set SETUP to true on setup

* Add (untested) processing capability and second passes where appropriate

* Minor refactor, add various javadocs

* Minor adjustments

* Better chest handling

* Utilise thread extends when able

* Add strings, changes to fastmode/side effect handling

* Cleanup

* Add for 1.21

* Adjustment for tall flowers - add capability to forcefully override block updates

* Move to Fawe/LinTag

* fix: adjustments, fix certain upside-down blocks

* Add for 1.21.3
2024-12-15 20:59:40 +01:00
David
afec252dca
Optimize layer iteration to prevent performance overhead. (#3022)
* Optimize layer iteration to prevent performance overhead.

Adjusted the layer iteration logic in the Region class to use the minimum and maximum Y-values from the chunk. This prevents unnecessary iterations when getMinimumY or getMaximumY returns extreme values, improving performance efficiency.

* Optimize layer iteration logic in Region class.

Refactored the loop to reduce repeated evaluations by storing pre-calculated min and max values for Y coordinates. This change enhances readability and may improve performance by minimizing unnecessary calculations during the iteration process.

* Update variable naming

* Shift bitwise operations to variable initialization
2024-12-15 01:56:07 +01:00
Pierre Maurice Schwang
b54821907d
Fix //snow (#3019)
* chore: update isFullCube to actually check for shape not occlusion

* chore/fix: fix and update snow simulator

* chore: consistent property field naming
2024-12-11 20:25:58 +01:00
Alexander Brandes
3bd5b956c5
Refactor 'Fawe' javadoc for better readibility
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-11-24 18:46:57 +01:00
Alexander Brandes
418d098eaa
Fix 'Fawe#getClipboardExecutor()' deprecation javadocs
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-11-24 18:34:11 +01:00
Hannes Greule
9d42b5db70
Move some classes to their expected location (#3004) 2024-11-24 10:52:43 +01:00
Hannes Greule
215898158f
Synchronize bundled data with WE (#2999) 2024-11-23 17:55:04 +00:00
Alexander Brandes
28fb77eb20
Release 2.12.1
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-11-19 17:51:43 +01:00
Jordan
d52e5b0970
fix: correctly check for properties in thaw/snow (#2976) 2024-11-19 16:54:49 +01:00
Jason Penilla
dcd6b93ebb
Build a Mojang mapped jar in addition to the reobf one, publish both to Modrinth with correct metadata (#2981) 2024-11-14 17:20:53 +01:00
Jordan
eb0f07af81
feat: alter clipboard thread to move all clipboard loading from main thread (#2867) 2024-11-06 17:16:03 +00:00
Jordan
e55e8fabe8
feat: improve error handling for state property operations (#2975) 2024-11-06 17:13:56 +00:00
Hannes Greule
7281fa360f
Make property changes more robust (#2962) 2024-11-04 11:22:06 +00:00
Hannes Greule
9eafbf1c26
Fix direction changes for //undo (#2972) 2024-11-04 11:20:51 +00:00
Jordan
44f7b63fb1
Allow stacking by block units with //stack (#1539) (#2973)
- closes #2968

Co-authored-by: Matthew Miller <mnmiller1@me.com>
2024-11-04 11:20:17 +00:00
Alexander Brandes
f0af979f5f
Release 2.12.0
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-10-25 20:33:44 +02:00
Hannes Greule
7d6643b452
Fix vectorized CountFilter (#2943) 2024-10-25 19:59:53 +02:00
Hannes Greule
65de3642d6
Use default nbt when parsing blocks (#2945) 2024-10-24 19:26:05 +01:00
Hannes Greule
fffa5a12ab
Fix ChunkHolder tile set delegation (#2949) 2024-10-24 19:25:49 +01:00
Pierre Maurice Schwang
be3ae1afd9
fix: don't require WEOrigin / WEOffset in MCEdit schematics (#2936) 2024-10-07 01:50:12 +02:00
Hannes Greule
bf2874ef80
Implement vectorization of #existing and inverse masks (#2927) 2024-09-28 21:39:09 +02:00
Hannes Greule
3b6e5e83c9
Fix NBT stripping and trimming (#2929) 2024-09-28 21:38:52 +02:00
Jordan
b4635e85c9
fix: some improvements to GET chunk writing (#2853)
* fix: some improvements to GET chunk writing
 - ensure levelChunk is loaded before giving to copy GET - this is not necessarily guaranteed to be nonnull if two edits overlap. Whilst not advised, such an easy failure should not occur when two edits collide

* Prevent writing chunk sections when FAWE is also sending packets for a chunk and vice versa
- alter IntPair hashcode to be more often unique
- Utilise ConcurrentHashMap for free synchronisation

* Minor comment changes

* Use one-per-world-instance FaweBukkitWorld to store world chunk map
2024-09-25 18:20:49 +01:00
Tyler Resch
8e1922dfe7
fix: apply origin to sponge v3 schematics (#2909)
* fix(#2864)

* Cherry-picked EngineHub/WorldEdit@cfd9eea

Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>

* Allow metadata tags to be optional + default value for this.origin

Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>

* Correct depth to be default of `0`

Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>

---------

Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
2024-09-22 22:41:38 +02:00
Jordan
7daafa97f0
fix: adjust linked filter to be left-right and do not link to new forked instances (#2913)
* fix: adjust linked filter to be left-right and do not link to new forked instances
 - Assume that child filters know about their own forks
 - fixes #1874

* Remove appliesChunk|Layer for now
2024-09-21 00:10:39 +02:00
Jordan
393f80165c
fix: add timeout to reading history from exchanger (#2920) 2024-09-19 06:55:53 +02:00
Hannes Greule
7e75ce78ec
Fix tile copying (#2922) 2024-09-18 22:04:56 +01:00
Jordan
d9d5b7b488
feat: improve fawe limits (#2773) (#2858)
* feat: improve fawe limits (#2773)

 - add FaweLimit implementations for increasing concurrency levels
 - allow FaweLimit to perform processing (and forcefully disable as required) to capture [tile] entities
 - Use `BlockVector3#set(Extent orDefault)` where appropriate to reduce block checks
 - fixes #2679
 - fixes #1874

(cherry picked from commit 6052fc3128)

* fix: actually apply a filter if applied from a full region chunk section
 - cannot remember why I made this change in the first place in #2773 but this fixes edits having "empty middles"
 - doesn't seem to have broken anything in testing

* Reduce limit to always atomic
2024-09-17 16:52:46 +01:00
Hannes Greule
71b99f9b05
Revert history writing using LinBinaryIO (#2919) 2024-09-16 19:41:58 +01:00
Alexander Brandes
5ef7461b50
Release 2.11.2
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-09-15 17:20:01 +02:00
Hannes Greule
ea5589b1f0
Introduce basic support for Vector API (#2890)
* Introduce basic support for Vector API

* add modules to javadoc too

* add assumption comments
2024-09-15 17:00:56 +02:00
Jordan
49b063a187
fix: compound tags can be nullable when converting state to baseblock (#2914) 2024-09-15 17:00:17 +02:00
Hannes Greule
1e8778b528
Avoid deprecated CompoundTag in API (#2883)
* Avoid deprecated CompoundTag in API

* use javax annotations
2024-09-14 10:47:37 +02:00
Hannes Greule
766a5d6da2
Faster undo operations (#2898) 2024-09-11 21:27:29 +01:00
Pierre Maurice Schwang
a1bea11c80
fix: allow webinterface schematic format to be detected (#2901)
* fix: allow webinterface schematic format to be detected

* chore: address review
2024-09-11 21:27:21 +01:00
Pierre Maurice Schwang
f771b0cf90
fix: don't process out of bound section while trimming Y sections (#2902)
* fix: don't process out of bound section while trimming Y sections

* fix: handle upper sections

* "fix" macos tests?

* cleanup imports

* update test case(s), fix upper bound(?)

* chore: simplify trim logic
2024-09-11 21:27:12 +01:00
Hannes Greule
5ac4d2fd5f
Replace usages and overrides of deprecated getSuggestions method (#2891) 2024-09-10 09:39:41 +01:00
Pierre Maurice Schwang
6a0b006da6
fix: hollow on large areas fails (#2900)
fix: determine BlockVector3Set by region size for recurse hollow
2024-09-01 11:25:54 +01:00
Pierre Maurice Schwang
f5f9ae6a85
Fix: Copy-Paste-Brush with falsy mask (#2899)
* fix: don't attempt to load all possible world chunks when copy pasta brush empty clipboard

* chore: move check into ResizableClipboardBuilder
2024-08-29 07:18:11 +02:00
Jordan
3b4e849276
chore: warn when both history db and delete disk on logout are enabled (#2824)
* chore: warn when both history db and delete disk on logout are enabled

* Improve message
2024-08-25 16:20:07 +02:00
Alexander Brandes
b5c22d6275
Release 2.11.1
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-08-11 21:37:10 +02:00
Jordan
fcbd346d8f
fix: do not StackOverflow when getting a section in FULL after awkward trim (#2863) 2024-08-07 07:56:33 +02:00
Jordan
f93ad596c6
fix: correctly resolve file if extension is given (#2857)
* fix: correctly resolve file if extension is given

* Adjust error if ClipboardFormats#findByFile null
2024-07-31 21:08:06 +02:00
dordsor21
0301fb0124
Revert "feat: improve fawe limits (#2773)"
This reverts commit 6052fc3128.
2024-07-28 18:36:04 +01:00
Jordan
d1f9d3d6d5
fix: improve FAWE stream history (#2844)
- reset "origin"/relative X/Z when larger than short min/max value so we do not write incorrect positions
 - history size can be larger than int max value
 - fixes #2583
2024-07-28 11:16:25 +02:00
Jordan
6052fc3128
feat: improve fawe limits (#2773)
- add FaweLimit implementations for increasing concurrency levels
 - allow FaweLimit to perform processing (and forcefully disable as required) to capture [tile] entities
 - Use `BlockVector3#set(Extent orDefault)` where appropriate to reduce block checks
 - fixes #2679
 - fixes #1874
2024-07-28 09:53:20 +02:00