Commit Graph
65 Commits
Author SHA1 Message Date
Hannes GreuleandGitHub dc61efe11c Implement linear patterns using RandomPattern + SimpleRandom (#2630) 2024-03-17 13:17:00 +01:00
Hannes GreuleandGitHub 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
Hannes GreuleandGitHub 641297497a Maintain insertion order for RandomPattern sub-patterns (#2603) 2024-03-04 07:32:33 +01:00
Hannes GreuleandGitHub 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 GreuleandGitHub f5dfe3ae16 fix rollback database query (#2591) 2024-03-02 13:43:38 +01:00
Hannes GreuleandGitHub f94b96d5b2 Use actual radius for inverse and adjust inside region check (#2582) 2024-02-18 09:55:06 +01:00
Hannes GreuleandGitHub c0a2eef648 Reuse generateTree code across versions (#2482) 2023-11-21 17:26:11 +00:00
Hannes GreuleandGitHub 1a7f555add Use FastSchematicReader by default (#2478) 2023-11-18 14:11:17 +00:00
Hannes GreuleandGitHub 46dd71e807 Only unlock if previously locked (#2489) 2023-11-08 20:39:25 +00:00
Hannes GreuleandGitHub 462b078c2d Support -n (select only) in //place (#2475) 2023-11-02 07:52:30 +01:00
Hannes GreuleandGitHub 6bd1382872 Reuse starlight relighting code across versions (#2474) 2023-10-31 21:00:46 +01:00
Hannes GreuleandGitHub b8434f891e Reduce duplicated singleton objects (#2473) 2023-10-29 10:55:50 +01:00
Hannes GreuleandGitHub 256ef74452 Cleanup rawtypes warnings in relighting code (#2472)
remove unneeded generic type
2023-10-26 21:14:27 +02:00
Hannes GreuleandGitHub 9fff77c088 Avoid premature trimming in RegionIntersection (#2471)
avoid premature trimming
2023-10-22 16:29:38 +02:00
Hannes GreuleandGitHub 6dfa7d1732 Fix chunkSource mappings on 1.19.4 (#2469)
fix chunkSource mappings on 1.19.4
2023-10-22 12:51:20 +02:00
Hannes GreuleandGitHub 8c5bb96fdd Streamline fawe thread names (#2467)
streamline fawe thread names
2023-10-21 17:48:35 +02:00
Hannes GreuleandGitHub a6378606d6 chore: update log4j2 javadoc url (#2466)
update log4j2 javadoc url
2023-10-18 20:49:07 +02:00
Hannes GreuleandGitHub f36c5d42c7 Avoid Unsafe usage where possible (#2403) 2023-09-09 16:07:37 +02:00
Hannes GreuleandGitHub 60a3994d62 Clean up some regen code (#2405) 2023-09-09 16:07:29 +02:00
Hannes GreuleandGitHub 68eb4e214a refactor: use HttpClient for update check (#2331) 2023-07-08 18:41:20 +01:00
Hannes GreuleandGitHub 083f8a4dd8 Set proper field access and use mappings for entities on spigot (#2282)
set proper field access and use mappings
2023-06-10 22:47:22 +02:00
Hannes GreuleandGitHub 152d870cdb Improve exception handling on adapter loading (#2277) 2023-06-08 08:24:44 +00:00
Hannes GreuleandGitHub 4fa927f996 Extract common code when resizing arrays (#2257) 2023-06-02 19:39:00 +02:00
Hannes GreuleandGitHub 7646a067eb Avoid many threads blocking on AbstractChangeSet#processSet (#2226) 2023-06-02 10:40:34 +01:00
Hannes GreuleandGitHub a14035d430 Revert "Actually delegate in AbstractDelegateExtent" (#2229) 2023-05-16 10:32:03 +02:00
Hannes GreuleandGitHub 71bac009db Properly scale the random in SimpleRandomCollection (#2220) 2023-05-12 23:13:35 +02:00
Hannes GreuleandGitHub 2987550e9b Actually delegate in AbstractDelegateExtent (#2196)
* actually delegate in AbstractDelegateExtent

* exclude enableHistory method
2023-05-04 18:33:04 +02:00
Hannes GreuleandGitHub c86dfe45df Ensure regen step not running on the main thread (#2185) 2023-04-23 22:15:37 +02:00
Hannes GreuleandGitHub 05afaf00a9 Address incompatibilities after CraftChunk changes in spigot (#2179) 2023-04-21 23:21:50 +01:00
Hannes GreuleandGitHub 86acb1c4d4 Simplify command dispatch to ensure command order (#2131) 2023-04-18 16:28:38 +01:00
Hannes GreuleandGitHub 90baa790c3 Make custom toArray methods fulfill the method contract (#2089)
* Make PropertyKeySet#toArray(T) fulfill the method contract

* Make LocalBlockVectorSet#toArray(T) fulfill the method contract
2023-03-06 13:57:40 +01:00
Hannes GreuleandGitHub 8a3052683e Use unsynchronized buffered OutputStream for history (#2127)
* Use unsychronized buffered OutputStream

* Add note

* Avoid synchronization on DataOutputStream#write
2023-03-06 13:54:35 +01:00
Hannes GreuleandGitHub 526e1902ca Fix FAWE using exclusive build height from PlotSquared (#2123)
Use inclusive build height maximum
2023-03-02 00:47:28 +01:00
Hannes GreuleandGitHub 1904b1fdd6 Fix reading block states in no redo mode (#2119) 2023-02-27 16:31:15 +01:00
Hannes GreuleandGitHub 321a39f121 Remove PlayerMoveEvent listener and deprecate MovableTool (#2083)
Remove PlayerMoveEventListener and deprecate MovableTool
2023-02-07 23:07:57 +01:00
Hannes GreuleandGitHub f9d6b127e6 Use Pattern Matching for instanceof in PropertyKeySet (#2086) 2023-02-07 23:07:31 +01:00
Hannes GreuleandGitHub 158e51191f Linear Patterns require flooring division (#2079)
Use floorDiv in linear patterns
2023-01-31 11:21:11 +01:00
Hannes GreuleandGitHub bb0e201c52 Remove usages of JoinedCharSequence (#2062) 2023-01-11 00:07:24 +01:00
Hannes GreuleandGitHub 79c23e06c3 Clean up starlight usage (#2029)
clean up starlight usage
2022-12-04 18:56:41 +01:00
Hannes GreuleandGitHub bbc1db9bd2 Read minecraft version from paper if available (#2002)
* read version from paper if available

* fix for versions without release information
2022-11-01 23:39:42 +01:00
Hannes GreuleandGitHub 13eb1f815f Fix mappings issue with biome-based regen on 1.18.2 (#1982)
access correct fields
2022-10-13 19:20:01 +02:00
5da558e24c feature: support paper chunk system (#1884)
* avoid usage of ticking chunk future on paper

* fix entity handling

* fix entity handling but on spigot

* seems like no one uses spigot

Co-authored-by: Alexander Brandes <[email protected]>
2022-09-04 23:30:32 +02:00
Hannes GreuleandGitHub a51863c6f0 fix: use proper level data for regen (#1921) 2022-08-27 15:49:01 +01:00
Hannes GreuleandGitHub a6a0b5eb66 fix: avoid recursive LegacyMapper initialization (#1922) 2022-08-27 15:48:54 +01:00
Hannes GreuleandGitHub ab659eadde fix: upstream missing Region#getBoundingBox() (#1908)
Use block change limit for //copy and //cut

(cherry picked from commit fd8dbdd7b7b8b561db98a45b4eae3810dedb1551)
2022-08-19 13:41:24 +02:00
Hannes GreuleandGitHub 8f1ca48bfc lock is in PalettedContainer in 1.17 (#1697) 2022-04-11 13:59:37 +02:00
a240b002de simplify biome id logic (#1677)
Co-authored-by: Alex <[email protected]>
2022-04-01 19:25:48 +02:00
Hannes GreuleandGitHub c45b14a52d Avoid Unsafe on paper (#1678) 2022-03-27 23:56:59 +02:00
Hannes GreuleandGitHub 96ca83704a fix: Backport fixing delay closing of clipboards on quit (#1493) 2021-12-25 17:18:39 +01:00
5367921496 fix: Use WE PaperweightAdapter for seed replacement (#1440)
* Use WE PaperweightAdapter for seed replacement
also, only replace when necessary

* fix comments

* ci: Provide basic Jenkinsfile for ghprb pipeline (#1451)

Co-authored-by: Alex <[email protected]>
2021-12-07 12:59:58 +01:00
53681ccc59 Feature/unsafe over reflections (#1082)
* Use Unsafe to replace Lock

* Start cleaning up everything that has to do with CleanableThreadLocal

* Make cancellation work

Co-authored-by: NotMyFault <[email protected]>
2021-05-28 18:47:46 -04:00
ff728478c6 Relight using starlight engine on Tuinity & perform heightmap updates (#1023)
* Relight using starlight engine on Tuinity

* Make use of invokeExact

* Cache MethodHandle

* Address some requested changes

* Remove random *

Co-authored-by: NotMyFault <[email protected]>

* Simplify and clean up sendChunk
Hopefully, that doesn't cause any issues

* Add naive HeightmapProcessor

* Make HeightmapProcessor more efficient

* Remove heightmap code from NMSRelighter

* Recognize fluid for waterlogged blocks

* Remove config option for heightmaps as they should always be updated

* Batch relighting for Starlight

* Dirty workaround for CharBlocks blocks NPE

* Revert "Dirty workaround for CharBlocks blocks NPE"

This reverts commit 737606a7
It only caused the heightmap to be wrong again and didn't help much with the original issue

* Adapt better chunk sending on older versions

* Adapt requested changes for HeightMapType

* Relight all changed chunks, batched
Also, address some requested changes

* Avoid deadlocks

* Clean up tuinity relighter and add some comments

* Minor changes to HeightmapProcessor

Co-authored-by: BuildTools <[email protected]>
Co-authored-by: NotMyFault <[email protected]>
Co-authored-by: Aurora <[email protected]>
2021-05-13 11:29:11 -04:00
Hannes GreuleandGitHub d974164204 Switch from PropertyKey enum to class (#971)
* Switch from PropertyKey enum to class

* Fix generic toArray
2021-03-14 19:38:11 +00:00
d632c642ff Don't add entities to chunk on regen (#927)
Co-authored-by: NotMyFault <[email protected]>
2021-02-22 11:11:13 +01:00
Hannes GreuleandGitHub aece0229c4 Properly repeat extents for negative coordinates (#825)
An extent's content was returned flipped when applied for negative positions, as e.g. `Math.abs(-2) % 3` returns 2 instead of 1 (as 1 + -1 * 3 = -2)

(cherry picked from commit b0cf5dd2bf1b9bcbf1c7efff0fe25de7ee9a2090)
2021-01-05 14:01:11 +01:00
428f8e201d Upstream changes (#717)
* Perform part of the move of //fast to //perf (#1377)

This re-adds a deprecated `//fast` and moves the current logic to
`//perf`. Later `//perf` will have its syntax reworked, when Piston
finally supports sub-commands properly!

* Names via Translation (#1268)

* Deprecate BiomeRegistry, etc.

* Update some libraries, e.g. text

* Move to new translation renderer

* Revert "Deprecate BiomeRegistry, etc."

This reverts commit 59a5d6c92aec52739a8dc68ac3d23898af7593dd.

This was not a good idea for potential mod shenanigans.

* Move BiomeData#getName to BiomeRegistry, use i18n

* Use getRichName instead of getName

* Implement getRichName for NullBiomeRegistry

* Add getRichName for blocks

* Relocate net.kyori.minecraft

* Update adapters for getRichBlockName

* Add getRichName for items

* Update adapters for getRichItemName

* Update adapters JAR for merge

(cherry picked from commit cfd26253b6fb59ff6c65a0157a6780be7db4ea5a)

* Follow-up fixes for 92f877679622a27b16b9e5cd61cfec1a6545be33

* Don't send deprecation warning and improve info message

* Fix click command for perf box

(cherry picked from commit 7ee60060c31df2f8b41212b430a0875312189339)

* update R3 adapter§

Co-authored-by: Octavia Togami <[email protected]>
Co-authored-by: NotMyFault <[email protected]>
Co-authored-by: Aurora <[email protected]>
Co-authored-by: Aurora <[email protected]>
2020-11-09 10:38:10 +01:00
Hannes GreuleandGitHub 30863c36e7 Fix confirm deadlock and confirm permissions/limits (#718) 2020-10-22 01:28:07 -04:00
Hannes GreuleandGitHub 097f3ec473 Reimplement #offset mask (#712) 2020-10-20 13:37:21 +01:00
Hannes GreuleandMattBDev e19c537f62 Reimplement l2d, l3d, existing and buffer pattern (#684)
* Reimplement l2d, l3d, existing and buffer pattern
Also smaller translation improvements and cleanup

* Allow aliases in RichParser
2020-10-08 21:50:42 -04:00
Hannes GreuleandMattBDev 950b1599ec Fix copypaste brush (#688) 2020-10-08 21:50:41 -04:00
Hannes GreuleandGitHub 4407749219 Reimplement l2d, l3d, existing and buffer pattern (#684)
* Reimplement l2d, l3d, existing and buffer pattern
Also smaller translation improvements and cleanup

* Allow aliases in RichParser
2020-10-08 16:39:15 +01:00
Hannes GreuleandGitHub 5800c0bc96 Fix copypaste brush (#688) 2020-10-07 15:32:05 +02:00
Hannes GreuleandGitHub f71ca32140 Reimplement biome pattern (#681)
* Reimplement biome pattern

* Improve suggestions and messages
2020-10-05 20:00:35 +01:00
Hannes GreuleandGitHub 0685881f64 Implement SupplyingExtent (#613) 2020-09-14 11:20:26 +01:00
Hannes GreuleandGitHub 0bb6bc3563 Start reimplementation of simplex pattern (#520)
* Start reimplementation of simplex pattern

* Fix suggestions

* Allow nested weighted patterns

* Add documentation and improve error handling

* Remove unnecessary code and obsolete TODOs
2020-07-01 13:01:39 +01:00