Commit Graph
100 Commits
Author SHA1 Message Date
dordsor21 37998ec598 Refactor heightmap classes to math where it makes more sense
(not required by heightmap processor, nor are they processors, used for heightmap brushes etc.)
2021-09-11 12:23:03 +01:00
dordsor21 db24b429c1 only close clipboard on error during copy
apply to //cut as well
2021-09-11 00:27:26 +01:00
dordsor21 470ba64fe4 Fix #1260 2021-09-10 17:46:21 +01:00
dordsor21 829ddc393f Fix #1268 2021-09-10 17:14:55 +01:00
dordsor21 c16212e456 Update adapters 2021-09-10 16:54:30 +01:00
dordsor21 88ae6d9e1d Optimise HeightmapProcessor (around 16x faster) 2021-09-10 16:53:25 +01:00
dordsor21 f0a6fa13da Fix serverlib shading 2021-09-10 16:25:31 +01:00
dordsor21 0e72fa5058 Specify requirement for delay-chunk-unloads-by to be set for preloading 2021-09-10 15:52:46 +01:00
dordsor21 3f182c63bc Fix #1285 2021-09-10 14:53:07 +01:00
dordsor21 effb94623a Fix exceptions being squashed RegionVisitor preloading 2021-09-10 14:41:15 +01:00
dordsor21 ef62f1e0d9 Fix adapters cos it's just plain wrong..? 2021-09-10 14:13:59 +01:00
dordsor21 195a13a23c some codestyle application 2021-09-08 16:39:43 +01:00
dordsor21 cdc3abbc43 bump p2 version 2021-09-03 14:48:58 +01:00
dordsor21 4bf2781cd0 Update adapters to https://github.com/IntellectualSites/FastAsyncWorldEdit-Adapters/commit/ae35e5327666f27fac571c86dc28a48808e0e685 2021-09-02 18:07:08 +01:00
dordsor21 79f4be3941 Adjust some synchronisation 2021-09-02 18:06:36 +01:00
dordsor21 f8aaf0cae3 Don't set extent to self when cancelling in AbstractDelegateExtent
#749
2021-09-02 17:13:38 +01:00
dordsor21 93dff36ee2 Fix #1265 2021-09-02 14:08:49 +01:00
dordsor21 15d888a40c Updated adapters to https://github.com/IntellectualSites/FastAsyncWorldEdit-Adapters/commit/5016d6d295b7f76321783983a9ea541b9fdebb34
#1266
2021-09-02 13:47:27 +01:00
dordsor21 b9e4b31c68 Clean up ChunkHolder slightly, only trim chunk get if not already present 2021-09-02 12:31:27 +01:00
dordsor21andGitHub fb7e95c440 Improve exceptions (#1256)
- Kick more exceptions further up the pipeline to be more likely to be shown to player
- Try to avoid lots of console spamming when it's the same error multiple times
- Allow parsing of FaweExceptions during commands to better give information to players
2021-09-01 16:36:03 +02:00
dordsor21 0e62760abf Update adapters to https://github.com/IntellectualSites/FastAsyncWorldEdit-Adapters/commit/9c5798ea7df4feb9238197dc96ce4c254d31f082 2021-08-29 10:28:23 +01:00
dordsor21 ebc38a62ad Should fix #1237 and should fix #1236 2021-08-26 16:44:49 +01:00
dordsor21 cacfcb8c5c LimitExtent isn't a processor 2021-08-26 16:44:08 +01:00
dordsor21 da8289f8ba Fix #826 2021-08-25 16:19:51 +01:00
dordsor21 4050cf238f Fix #1217 2021-08-25 15:48:39 +01:00
dordsor21 29bebcd034 Fully fix #949 2021-08-25 15:32:25 +01:00
dordsor21 4e463af1df Remove log output from DefaultBlockParser 2021-08-25 14:12:40 +01:00
dordsor21 a66080d803 Fix build, add note 2021-08-25 14:06:12 +01:00
dordsor21 46fb0c9418 Add binary tag methods to IDelegateBukkitImplyAdapter 2021-08-25 12:53:37 +01:00
dordsor21 ea6b29f145 Fix up annotations in block classes and slight cleanup 2021-08-25 12:25:33 +01:00
dordsor21 80d99073ec Remove PluginPreloader 2021-08-25 11:19:31 +01:00
dordsor21 df18fcef92 Fix #1250 2021-08-25 11:16:06 +01:00
dordsor21 46c96b45fc Fix build 2021-08-25 11:16:01 +01:00
dordsor21 012e55e780 Fix links 2021-08-25 11:08:14 +01:00
dordsor21 7d9abc9273 Skip corrupt tile entities in legacy schematics 2021-08-23 21:46:50 +01:00
dordsor21 6301a7adb9 Deprecate and add the warnings for BlockType#getState as it is broken 2021-08-23 21:28:06 +01:00
dordsor21 c0893a404d Set default number of iterations for snow smooth brush to 1. 2021-08-23 21:27:35 +01:00
dordsor21 0aadef97d0 Quick fix for SnowHeightMap 2021-08-23 21:26:59 +01:00
dordsor21 ddc59809d8 Update adapters to https://github.com/IntellectualSites/FastAsyncWorldEdit-Adapters/commit/ff01bfd70d1a9cc305ba6bb5297d60aa41dd38fa 2021-08-23 20:59:29 +01:00
dordsor21 1a0f7df3f4 Fix #1243 2021-08-23 13:08:10 +01:00
dordsor21 2e0de7b197 Fix nullability issue with SnowHeightMap mask, apply some cleanup and reduce needless object creation 2021-08-23 11:57:00 +01:00
dordsor21 cd576a2a87 Fix #1241 2021-08-20 16:33:58 +01:00
dordsor21 8e899b8524 Skip registering "custom" biome.
Update adapters to 332c1f6bb17d2ded53fe5b09f3f2a4578f3f9bfc
2021-08-20 16:30:51 +01:00
dordsor21 3dd943f961 Avoid paper-only method 2021-08-20 15:53:12 +01:00
dordsor21 cf68caff99 Correct default biome loading method 2021-08-19 14:12:55 +01:00
dordsor21 f412796f28 Load default biomes into registry at earliest convenience, then load custom biomes later. 2021-08-19 13:48:24 +01:00
dordsor21 563ad7761a Fix LocalBlockVectorSet
- Fixes #1238
2021-08-19 13:10:09 +01:00
dordsor21 6a932f2eda Preloading is paper only. 2021-08-17 22:34:51 +01:00
1d9b1a3d5e Remove hardcoding of world limits (#1199)
* Remove hardcoding of world limits
 - seems to be working fine without the datapack for world height changing
 - particular attention should be given to LocalBlockVectorSet and MathMan changes

* update adapters

* Override getMinY in various classes and ensure selections have a world attached to them

* no message

* Address comments
 - Fix for lighting mode 1

* A few more changes

* Fix LocalBlockVectorSet

* Fix range statement

* Various fixes/comment-addressing
- There's not much point in having a different file name now for history. We've broken it before...
- Fix history read/write
- Fix range on for loops in CharBlocks

* undo bad CharBlocks change

* Fix history y level

* Fix biome history

* Fix lighting

* Fix /up

* Make regen fail not because of these changes

* Fixes for y < 0

* Fix isEmpty where only the uppermost chunksection is edited

* Fix javadocs/FAWE annotations

* Better explain why BiomeMath is removed

* If history task throws an error, it should only be caught and printed if not completing now.

* Min|max world heights for new patterns

* Load biomes from NMS instead of bukkit (#1200)

* Update adapters

* Update adapters

* Don't initialise BlockTypes when biomes aren't set up yet so all BiomeTypes.BIOME are no longer null thanks.

* Address some comments.

* rename layer -> sectionIndex to imply inclusivity

* Javadoctored.

Co-authored-by: NotMyFault <[email protected]>
Co-authored-by: Hannes Greule <[email protected]>
2021-08-17 22:13:51 +01:00
dordsor21 f7161ea890 Update adapters 2021-08-17 18:45:08 +01:00
dordsor21 664cd4e33d Preloader is null for spigot users 2021-08-17 18:06:57 +01:00
dordsor21 51eee01eef Update adapters 2021-08-17 17:52:28 +01:00
dordsor21 347bd04065 Fix initialisation 2021-08-17 17:09:52 +01:00
dordsor21 4cae37fbbf Add back extra angle mask prefixes 2021-08-17 17:07:37 +01:00
dordsor21 569fdc3861 Reimplement radius mask, fix wall mask 2021-08-17 17:03:25 +01:00
dordsor21 46f6395279 Improve mask parsing
- Fixes #1230
2021-08-17 17:02:11 +01:00
dordsor21 0ffab8ee69 Add null check to preloader 2021-08-17 15:38:47 +01:00
dordsor21 8c11ba7fea Preload chunks up to the configured limit, cancel preloading on EditSession complete 2021-08-17 12:07:48 +01:00
dordsor21andGitHub da7aca8ef8 Add basic preloading (#1221) 2021-08-16 20:47:09 -04:00
d4d98708f9 Re-implement richer mask and transform parsing (#1223)
Co-authored-by: dordsor21 <[email protected]>
Co-authored-by: Hannes Greule <[email protected]>
2021-08-16 09:03:06 +00:00
dordsor21 50137b31c4 Update adapters 2021-08-15 15:59:30 +01:00
dordsor21 c287739be7 Minecraft uses the global block palette if there are more than 8 bits per entry in a chunk section
- Fixes #1228
2021-08-14 14:29:57 +01:00
dordsor21 98673b5743 Update adapters 2021-08-13 11:59:24 +01:00
dordsor21 3c75ed7d46 javadoc 2021-08-13 11:51:05 +01:00
dordsor21 c65c72b249 Allow adapters to override World#getEntities to avoid AsyncCatcher
- Even if we access (cache) the entities synchronously, we'd then be doing stuff asynchronously so adapters can override this and either use the world#getEntities normally (pre 1.17) or get entities async anyway.
2021-08-13 11:44:18 +01:00
dordsor21 3e4f1d5cd8 Better Mathman#isInteger 2021-08-11 20:38:52 +01:00
dordsor21 00a6a2d917 Fix stash failure 2021-08-11 15:03:59 +01:00
dordsor21 3ba42df321 Use more MutableBlockVector3s 2021-08-11 14:56:10 +01:00
dordsor21 6f5430a940 Some cleanup of mutables 2021-08-11 14:00:12 +01:00
dordsor21 8928556c1d Minor improvement to MathMan#isInteger 2021-08-11 12:32:46 +01:00
dordsor21 31b41235ac Update adapters 2021-08-09 14:34:39 +01:00
dordsor21 57f7c93033 Fix history rollback
- Fixes #959
2021-08-08 19:35:57 +01:00
dordsor21 6562f8adbd Update adapters 2021-08-08 12:09:05 +01:00
dordsor21 08ebef2905 Break file to make git notice it 2021-08-08 12:08:55 +01:00
dordsor21 c58b143552 Update adapters to https://github.com/IntellectualSites/FastAsyncWorldEdit-Adapters/commit/3f6df1adeed711ba5339517fc3342c4daa515274 2021-08-08 12:03:52 +01:00
dordsor21 2376ce8d9d Add thickness to //hcyl and //br cylinder -h
- Closes #753
2021-08-08 10:02:58 +01:00
dordsor21 9af77c06b8 Fix ParallelQueueExtent#setBlocks(Region, <B extends BlockStateHolder>)#
- Fixes removeabove/removebelow
2021-08-07 17:38:09 +01:00
dordsor21 346223977d Add javadoc comments to generateTree 2021-08-07 16:28:41 +01:00
dordsor21 e90b261196 Trees should be generated on the main thread
- Also remove warning when using tree tool
2021-08-07 16:19:41 +01:00
dordsor21 0d84967853 Fixes #1219 2021-08-07 16:12:03 +01:00
dordsor21 d62a1b5ad3 Always trim chunk GET in ChunkHolder
- Possibly something to do with #1169
2021-07-29 20:37:10 +01:00
dordsor21 8ba2eb3330 [CI-SKIP] update bug report template to reflect 1.17 FAWE 2021-07-24 17:17:43 +01:00
8c0195970b Add and apply .editorconfig from P2 (#1195)
* Consistenty use javax annotations.
 - Unfortunately jetbrains annotations seem to be exposed transitively via core somewhere, but with the correct IDE settings, annotations can be defaulted to javax
 - Cleaning up of import order in #1195
 - Must be merged before #1195

* Add and apply .editorconfig from P2
 - Does not rearrange entries

* Address some comments

* add back some javadoc comments

* Address final comments

Co-authored-by: NotMyFault <[email protected]>
2021-07-24 16:34:05 +01:00
dordsor21 3b4beba7d6 Improve performance of various commands/actions
- Add chunk preloading to RegionVisitor if supplied with a suitable Extent
 - Where extents are used in masks, set EditSession as the extent as they are otherwise initialised with WorldWrapper that is very slow
 - Fixes #1073
2021-07-24 15:47:22 +01:00
f2ee2248e0 Consistenty use javax annotations. (#1197)
- Unfortunately jetbrains annotations seem to be exposed transitively via core somewhere, but with the correct IDE settings, annotations can be defaulted to javax
 - Cleaning up of import order in #1195
 - Must be merged before #1195

Co-authored-by: NotMyFault <[email protected]>
2021-07-24 15:52:08 +02:00
dordsor21 5e9535db41 Re-add shading/relocation of fastutils and add a dumb class because minimise doesn't scan worldedit-adapters 2021-07-24 14:12:59 +01:00
dordsor21 b599d86a1c Assume it's safe not to shade or relocate fastutils 2021-07-24 13:14:58 +01:00
dordsor21 8f55d3f9a4 update adapters 2021-07-24 13:14:19 +01:00
dordsor21 41f4aadf40 Update to 1.17.1 texture jar 2021-07-24 12:19:44 +01:00
dordsor21 d46af0136b Fix nullable world in regions 2021-07-24 10:04:04 +01:00
dordsor21 39defaea5e and reupdate adapters without a borked jar file because the hash wasn't different the first time round 2021-07-23 21:57:06 +01:00
dordsor21 c37ce767d7 update adapters 2021-07-23 21:54:49 +01:00
dordsor21 4341001a1c Update adapters 2021-07-23 21:03:02 +01:00
dordsor21 0be8746c11 Add more directionals
- Fixes #1122
 - Levers and buttons can be flipped/rotated vertically
2021-07-23 20:15:22 +01:00
dordsor21 ad102ab7a9 clipboard brush is supposed to be -o not -p 2021-07-23 11:27:14 +01:00
dordsor21 8e16acde1d Fix error in clipboard brush switches 2021-07-23 09:54:30 +01:00
dordsor21 6acd8498b2 Update adapters 2021-07-22 17:59:48 +01:00
dordsor21 1e49f59001 Much better hinge handling 2021-07-21 20:00:39 +01:00
dordsor21 1ec927f30c Add check when obtaining BlockState from id to prevent edits losing large amounts of data 2021-07-20 20:49:47 +01:00
dordsor21 5f8addbb5b Fix #1185
TODO: fix door hinge placement on rotate/flip sometimes
2021-07-20 20:49:13 +01:00