Commit Graph

2705 Commits

Author SHA1 Message Date
Jordan
c9b2f441c1
feat: only unstuck a player if configured to do so (#2723)
- also add unstuck to a couple of other commands
 - closes #2675
2024-05-14 21:30:34 +02:00
Jordan
1d9e8b60ab
fix: add missing blocktypes and some minor cleanup (#2722)
- fixes #2713
2024-05-12 11:05:00 +01:00
Hannes Greule
9bc09c6a4c
Integrate WE Schematic Share system (#2619)
* Integrate WE Schematic Share system

(cherry picked from commit 303f5a76b2df70d63480f2126c9ef4b228eb3c59)

* disable feature for now

---------

Co-authored-by: Madeline Miller <mnmiller1@me.com>
2024-05-12 09:41:48 +01:00
Jordan
debfabff08
feat: introduce migrating config nodes to new locations (#2642)
- Initial case of moving schematic limits from experimental to limits
 - Closes #2533
2024-05-01 17:31:06 +09:00
Pierre Maurice Schwang
a0ef151341
Fix heightmap brush with imgur images (#2680)
fix: heightmap brush with imgur / remote images
2024-04-12 20:55:40 +02:00
Alexander Brandes
5e10c98915
Release 2.9.2
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-04-04 21:56:07 +02:00
Alexander Brandes
af547e072c
List FAWE class additions in Javadocs (#2659)
* List FAWE class additions in Javadocs

Signed-off-by: Alexander Brandes <mc.cache@web.de>

* Update worldedit-core/src/main/java/com/sk89q/worldedit/world/chunk/package-info.java

---------

Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-04-01 12:34:19 +02:00
Jordan
23bcdb0409
fix: introduce approx size to patterns and use in ScatterBrush (#2631)
* fix: introduce approx size to patterns and use in ScatterBrush
 - fixes #2610

* Do not use patternsize in blockvectorset offset
2024-03-30 10:31:52 +01:00
dordsor21
c1c3a5f7ed
fix: git did not find conflict here, remove duplicate fork method 2024-03-27 16:32:11 +00:00
Hannes Greule
7b8c7894ba
Make usage of stateful patterns thread-safe (#2633)
* Make usage of No(Axis)Patterns thread-safe

* make more pattern usage thread-safe

* make more WE patterns thread safe

* remove StatefulPattern
2024-03-27 15:16:06 +01:00
Hannes Greule
8095111eff
Simplify processor ordering (#2651) 2024-03-27 15:15:42 +01:00
Hannes Greule
2dee197f2b
Use correct find class in ExtentTraverser (#2649)
use correct find class in ExtentTraverser
2024-03-24 18:02:16 +01:00
Zeranny
c10f58ac95
Fix Linear pattern index incrementing above array length (#2626)
* Fix index incrementing above array length in async

* Add fork method
2024-03-24 15:49:58 +01:00
Zeranny
9d20df9e6b
Fix queryRel returning data value for block at absolute coordinates (#2645)
* Replace toWorld with toWorldRel for relative data

* re-add accidentally deleted annotation
2024-03-23 20:26:13 +01:00
Pierre Maurice Schwang
68eb24a2f9
fix: imgur image resolution, image input stream reading (#2637) 2024-03-20 23:39:36 +01:00
Jordan
b512182e1f
feat: save region selector to session store (#2621)
* feat: save region selector to session store
 - closes #2397

* Move new gson adapters to FAWE packages
2024-03-17 20:25:43 +01:00
Jordan
d2ca3ed6fe
fix: better image reading errors (#2632)
- closes #2593
2024-03-17 20:25:09 +01:00
Hannes Greule
dc61efe11c
Implement linear patterns using RandomPattern + SimpleRandom (#2630) 2024-03-17 13:17:00 +01:00
Jordan
2d0a3e6081
fix: do not error when attempting to parse "|" as a pattern (#2625) 2024-03-17 13:15:28 +01:00
Alexander Brandes
0db8154546
Drop support for 1.17.1 (#2627)
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-03-17 08:37:03 +01:00
Jordan
f60539f41d
chore: deprecate transform extent for removal (#2623) 2024-03-16 20:12:02 +01:00
Zeranny
37d4e9bb6f
Allow factory suggestions to have parser context (#2613)
* Add context to rich parser

* Description for getSuggestions with context

* Tidy up imports

* Swap which getSuggestions is primary

* Revert "Swap which getSuggestions is primary"

This reverts commit 5c257f60ea9ec002e407b2a4a8a7c6ede6bee5e7.

* Revert default swap and add deprecation note
2024-03-15 18:41:53 +01:00
Hannes Greule
10dc64eeaf
Make sure to process all chunks in PQE even if PARALLEL_THREADS = 1 (#2611)
make sure to process all chunks in PQE even if PARALLEL_THREADS = 1
2024-03-15 18:41:16 +01:00
Jordan
8363badf80
fix: correctly (de)serialise ItemType (#2620)
- InternalId changes depending on ~~magic~~ so we should not store this value
 - fixes #2589
2024-03-15 18:39:35 +01:00
MineFact
df9527b0b7
fix: set and clone Expression Environment after Expression cloning (#2617)
- Fixes #2616
2024-03-15 11:27:25 +01:00
Jordan
facd31ce31
fix: do not forcefully direct to x,y,z methods in AbstractDelegateExtent (#2614)
- we probably shouldn't be doing this
2024-03-14 17:56:08 +01:00
Hannes Greule
641297497a
Maintain insertion order for RandomPattern sub-patterns (#2603) 2024-03-04 07:32:33 +01:00
Hannes Greule
164271374b
Decrease lock contention in SingleThreadQueueExtent (#2594)
* thread local extent

* avoid race conditions due to ChunkHolder pooling

* clean up JFR events, javadoc

* remove ThreadLocalPassthroughExtent
2024-03-04 07:31:56 +01:00
Hannes Greule
f5dfe3ae16
fix rollback database query (#2591) 2024-03-02 13:43:38 +01:00
Hannes Greule
f94b96d5b2
Use actual radius for inverse and adjust inside region check (#2582) 2024-02-18 09:55:06 +01:00
Alexander Brandes
974078c2cd
Release 2.9.2
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-02-06 21:45:25 +01:00
Jordan
a502287906
refactor: minor adjustments to error handling (ignoring) and blocking queue (#2566) 2024-02-02 18:07:13 +01: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
Zeranny
763a497cdc
Fix out of bounds error for erode and pull brushes (#2554)
- Fixes #2380
2024-01-28 13:10:48 +01:00
Jordan
e815071134
fix: fix plot swap (#2360)
- deprecate and note for internal use only Clipboard#create as it's funky
 - fixes #2076
2024-01-21 12:42:24 +01:00
Alexander Brandes
7b4b384df6
Update upstream 2024-01-06 10:53:53 +01:00
Alexander Brandes
a4a11265ec
Back to snapshot for development 2023-12-22 18:37:07 +01:00
Jordan
28ab5662fd
fix: correct the delegated methods in AbstractDelegateExtent (#2365)
- Not all methods should be overridden: we need to keep delegating-to-setblock methods in parent classes
2023-12-21 13:11:44 +00:00
Jordan
2f92626433
feat: add switch to allow removal of entities on paste (#2525)
- closes #2395
2023-12-18 15:33:02 +00:00
Jordan
6caf4640ea
feat: add config option for if the DOC should lock the file channel (#2526)
- related to #2222
- effectively just a workaround as most people would not need to worry about locking the clipboard file
2023-12-18 15:04:34 +00:00
Jordan
f44b1b48c7
chore: add a more informative error when parsing block properties (#2524) 2023-12-18 14:58:53 +00:00
Jordan
d4b68b384b
fix: add chunk loc to tile entity location when trimming (#2500)
- fixes #2499
2023-12-12 08:00:40 +01:00
Alexander Brandes
605743321f
Add support for 1.20.3 and 1.20.4 (#2512)
* 1.20.3

* 1.20.3 ItemTypes

* 1.20.3

* 1.20.3

* 1.20.4

* Fixup refractions

* Move adapters to _4
2023-12-08 07:30:08 +01:00
RedstoneFuture
ea6138ce1f
Unify the limit permission (#2420) 2023-12-07 18:26:21 +01:00
dordsor21
d1798b7408
chore: remove bad range annotations 2023-11-26 12:28:47 +00:00
Jordan
6722d73c68
fix: fixed history rollback (#2367)
- Also go ahead and clean up other parts of this, with more appropriate operators used
 - Fixes #2366
2023-11-25 20:32:29 +00:00
dordsor21
a64d24c6cf
feat: more informative BoundedHeightMask error message 2023-11-18 15:02:02 +00:00
Hannes Greule
1a7f555add
Use FastSchematicReader by default (#2478) 2023-11-18 14:11:17 +00:00
Hannes Greule
46dd71e807
Only unlock if previously locked (#2489) 2023-11-08 20:39:25 +00:00
Alexander Brandes
38fc4cf541
Release 2.8.2 2023-11-03 15:07:12 +01:00
Hannes Greule
462b078c2d
Support -n (select only) in //place (#2475) 2023-11-02 07:52:30 +01:00
Hannes Greule
b8434f891e
Reduce duplicated singleton objects (#2473) 2023-10-29 10:55:50 +01:00
Jordan
36a892eb37
fix: chunks should only be initialised in the getOrCreateChunk method (#2462) 2023-10-26 21:14:39 +02:00
Hannes Greule
256ef74452
Cleanup rawtypes warnings in relighting code (#2472)
remove unneeded generic type
2023-10-26 21:14:27 +02:00
Jordan
50cc9bc528
fix: clear player's history away from main thread if lock locked (#2457)
* fix: clear player's history away from main thread if lock locked
 - addresses crashing of #2448

* Correct lock usage

* remove possibility for race condition
2023-10-23 16:40:38 +02:00
Hannes Greule
9fff77c088
Avoid premature trimming in RegionIntersection (#2471)
avoid premature trimming
2023-10-22 16:29:38 +02: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
Hannes Greule
8c5bb96fdd
Streamline fawe thread names (#2467)
streamline fawe thread names
2023-10-21 17:48:35 +02:00
Zeranny
50ecc5908d
Fix "cleared" ellipsoid/cylinder regions still passing isDefined check (#2465) 2023-10-21 16:27:39 +01:00
dordsor21
470c75d843
minor cleanup 2023-10-14 20:27:46 +01:00
opl-
aae9249014
Fix NullPointerException due to nullable source extent in ExtentEntityCopy (#2447)
Fix NullPointerException due to nullable source extent

Co-authored-by: opl <4833621+opl@users.noreply.github.com>
2023-10-07 20:16:21 +02:00
Jordan
90d52f39d9
fix: add null check for block targetted with inspect brush (#2443) 2023-10-05 14:54:52 +01:00
Jordan
971559ec23
feat: fake the copied biomes (#2359) 2023-10-04 09:39:14 +01: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
Alexander Brandes
319bc0a551
Fix left click on air being ignored and right click on block being handled twice 2023-09-16 23:44:14 +02:00
Joo200
81ba7d1acd
Add worldedit runtime environment to increase yaml alias limit (#2395)
This can be set by -Dworldedit.yaml.aliasLimit=XXX in the startup parameter

(cherry picked from commit 94565356fd39bf360b35ee77ea5b3614d48be772)
2023-09-16 23:35:05 +02:00
RedstoneFuture
0744504fad
Adding note about "worldedit.anyblock" permission (#2419)
Adding note
2023-09-15 22:41:28 +02:00
Hannes Greule
f36c5d42c7
Avoid Unsafe usage where possible (#2403) 2023-09-09 16:07:37 +02:00
Alexander Brandes
e81980651e
Cleanup dependencies 2023-08-09 20:52:18 +02:00
Jordan
d42854845a
fix: disallowed regions can be length 0 (#2368) 2023-07-27 11:02:41 +02:00
Jordan
8b39e41a1a
fix: don't warn on release build (#2369) 2023-07-27 10:59:11 +02:00
dordsor21
48be6ac94b
fix: processorExtent can be null when setting masks too
- fixes #2379
2023-07-22 17:44:05 +01:00
dordsor21
2f6de996e3
fix: processorExtent can be null in editsession
- fixes #2375
2023-07-22 13:14:01 +01:00
Alexander Brandes
37bfe426bc
Release 2.7.0 2023-07-22 12:27:54 +02:00
Alexander Brandes
c91b477e29
Update PlotSquared integration to v7 (#2075)
Co-authored-by: dordsor21 <dordsor21@gmail.com>
2023-07-22 12:01:33 +02:00
Jordan
9543adc776
Implement async notify queue that submits to a KeyQueuedExecutorService (#2334) 2023-07-20 17:58:01 +02:00
Jordan
18df87a4e8
feat: implement a new "type swap" pattern (#2346) 2023-07-20 17:57:48 +02:00
Jordan
0a8a479214
fix: do not clash ChunkHolder recycling with processors that extend outside the chunk (#2353) 2023-07-20 17:57:29 +02:00
Jordan
fe1859e9d2
fix: do not retain clipboards that completed exceptionally (#2358) 2023-07-20 17:56:30 +02:00
Jordan
f65c4743bd
fix: make IdMask thread-safe (#2361) 2023-07-20 17:56:11 +02:00
Jordan
cdd546ee5e
fix: correct NBT for spawners (#2362) 2023-07-20 17:55:59 +02:00
Paul
5167073326
fix: regions not trimming Y correctly when restricted (#2363) 2023-07-17 21:47:47 +01:00
Chris Lang
e0507e6440
Added cone generation command (#2251)
* Added cone generation command

* Fix formatting problems

---------

Co-authored-by: Madeline Miller <mnmiller1@me.com>
2023-07-15 21:18:09 +01:00
Jordan
e6b1308590
feat: synchronise disk clipboard loading and deletion to clipboardLock (#2342)
- another possible help towards the OverlappingFileLockException
2023-07-15 16:40:52 +01:00
Jordan
f4da4b0287
fix: fix adding/getting masks to/from MaskExtent when it is a processor (#2351)
- fixes #2350
2023-07-15 16:40:29 +01:00
dordsor21
8da530ee80
gracefully handle error in EntityInBlockRemovingProcessor
-  ensures edit continues on chunk correctly
2023-07-15 12:27:33 +01:00
Alexander Brandes
1745c50878
Improve error behaviour of //generate 2023-07-15 09:26:00 +02:00
dordsor21
a680c7ce97
fix: fix #2352 2023-07-13 17:08:18 +01:00
dordsor21
0a19f643b6
fix #2349 2023-07-11 16:39:53 +01:00
Jordan
c0e20a6fe5
feat: provide some information upon OverlappingFileLockException (#2341) 2023-07-10 23:16:05 +02:00
Jordan
1f29ab3b79
fix: fix command brush (#2347) 2023-07-10 22:04:33 +01:00
Jordan
685248d8de
chore: deprecate some methods that ought to be removed (#2340) 2023-07-09 15:16:30 +01:00
Hannes Greule
68eb4e214a
refactor: use HttpClient for update check (#2331) 2023-07-08 18:41:20 +01:00
Jordan
6fbdef5252
feat: allow bracketless '%' pattern definition (#2322) 2023-07-07 18:36:02 +02:00
Jordan
d7cc65d2f2
refactor: some changes that may help #2289 (#2307) 2023-07-03 16:37:42 +01:00
dordsor21
83a4987252
chore: queue progress messages are not implemented 2023-06-30 19:36:35 +01:00
Jordan
24325d91ba
feat: improve (region) fawe mask handling (#2312)
* feat: improve fawe mask handling
 - Actually cache masks, even if the player has left the region
 - Fix P2 isValid test for single plots
 - Fixes #1946

* Fix incorrect delegated method
2023-06-28 09:24:20 +01:00
Jordan
0554b31f11
feat: implement removal of entities if they would be in a block after the edit (#2311)
- Includes some refactoring to EditSessionBuilder to prevent doubling-up of processors that are also extents
 - Better ordering of the EditSessionBuilder process/extent code to match where extents actually end up in the stack
 - Fixes #1941
2023-06-27 18:37:09 +02:00
Jordan
476ba4ab41
refactor: efficiency improvements to some editsession methods (#2304) 2023-06-27 18:36:54 +02:00
Alexander Brandes
97ee71bbd0
Update settings name in queue.target_size warning 2023-06-27 13:56:30 +02:00