Commit Graph

2534 Commits

Author SHA1 Message Date
6301a7adb9 Deprecate and add the warnings for BlockType#getState as it is broken 2021-08-23 21:28:06 +01:00
c0893a404d Set default number of iterations for snow smooth brush to 1. 2021-08-23 21:27:35 +01:00
0aadef97d0 Quick fix for SnowHeightMap 2021-08-23 21:26:59 +01:00
1a0f7df3f4 Fix #1243 2021-08-23 13:08:10 +01:00
2e0de7b197 Fix nullability issue with SnowHeightMap mask, apply some cleanup and reduce needless object creation 2021-08-23 11:57:00 +01:00
cf671ad7ff Update Upstream
ed28089 Don't crash if fields are null in ChunkDeleter (1874)
f049d56 Revert "Use a Guava Cache instead of a ThreadLocal (1859)"
c5a4450 Internally use a negated mask class to prevent russian doll wrapping (1877)
1397ec7 Add Snow Smooth Tools (1580)

Fixes #955
Fixes #858
2021-08-22 11:56:39 +02:00
df8b2802b2 Support custom world min heights when processing heightmaps 2021-08-21 10:52:45 +02:00
cd576a2a87 Fix #1241 2021-08-20 16:33:58 +01:00
563ad7761a Fix LocalBlockVectorSet
- Fixes #1238
2021-08-19 13:10:09 +01:00
188e4b6215 Fix unknown direction exception missing key 2021-08-18 14:57:14 +02:00
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 <mc.cache@web.de>
Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com>
2021-08-17 22:13:51 +01:00
664cd4e33d Preloader is null for spigot users 2021-08-17 18:06:57 +01:00
347bd04065 Fix initialisation 2021-08-17 17:09:52 +01:00
4cae37fbbf Add back extra angle mask prefixes 2021-08-17 17:07:37 +01:00
569fdc3861 Reimplement radius mask, fix wall mask 2021-08-17 17:03:25 +01:00
46f6395279 Improve mask parsing
- Fixes #1230
2021-08-17 17:02:11 +01:00
0ffab8ee69 Add null check to preloader 2021-08-17 15:38:47 +01:00
8c11ba7fea Preload chunks up to the configured limit, cancel preloading on EditSession complete 2021-08-17 12:07:48 +01:00
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 <dordsor21@gmail.com>
Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com>
2021-08-16 09:03:06 +00:00
3e4f1d5cd8 Better Mathman#isInteger 2021-08-11 20:38:52 +01:00
00a6a2d917 Fix stash failure 2021-08-11 15:03:59 +01:00
3ba42df321 Use more MutableBlockVector3s 2021-08-11 14:56:10 +01:00
6f5430a940 Some cleanup of mutables 2021-08-11 14:00:12 +01:00
8928556c1d Minor improvement to MathMan#isInteger 2021-08-11 12:32:46 +01:00
e2b2feb7c5 Use MethodHandle for faster event bus (#1865)
* Use MethodHandle for faster event bus

* Implement hashCode/equals

* Apply review comments

* Bind to the object directly
2021-08-09 10:21:42 +01:00
57f7c93033 Fix history rollback
- Fixes #959
2021-08-08 19:35:57 +01:00
f06ba41f91 Fix Cycler tool not using full block data (#1868)
(cherry picked from commit 8ee45137aa5d7a3b80b661601ab14e48f13756ec)
2021-08-08 17:33:45 +01:00
d10b038e84 Create SurfaceAngleMask (#1215) 2021-08-08 09:59:42 +00:00
2376ce8d9d Add thickness to //hcyl and //br cylinder -h
- Closes #753
2021-08-08 10:02:58 +01:00
75b888a9f0 Add missing translation keys 2021-08-08 01:52:28 +02:00
9af77c06b8 Fix ParallelQueueExtent#setBlocks(Region, <B extends BlockStateHolder>)#
- Fixes removeabove/removebelow
2021-08-07 17:38:09 +01:00
346223977d Add javadoc comments to generateTree 2021-08-07 16:28:41 +01:00
e90b261196 Trees should be generated on the main thread
- Also remove warning when using tree tool
2021-08-07 16:19:41 +01:00
abaa347ad4 Fix major security bugs (3 brushes + superpickaxe)! (#1213)
* Fix major security bugs (3 brushes + superpickaxe)!
- Due to some recent changes, FAWE could edit everything in the world, no matter other plugin protections such as PS or WG.
- Fix superpickaxe allow to bypass protections => Fix SurvivalModeExtent not taking into account protections plugins due to breaking blocks naturally to get drops.

* Adress requests
- Revert some unsuitabe changes
- Add FAWE diff comments

* Clean imports

* Adress requests

Co-authored-by: NotMyFault <mc.cache@web.de>
2021-08-07 11:09:33 +02:00
14fc2dbf9b Fix fawe-deprecation javadoc linking 2021-08-05 18:33:19 +02:00
3ccb5e0aed Use translation message for brush assignment 2021-08-04 22:44:24 +02:00
2bcf3eedf1 Add //br snow
Apparently an upstream addition we forgot to pull.
2021-08-04 22:29:43 +02:00
45a8030aeb Update Upstream
b9f0416 Use a Guava Cache instead of a ThreadLocal (1862)
2021-08-02 22:10:21 +02:00
9f3a451ef6 Fixes #756 2021-07-31 14:18:04 +02:00
d62a1b5ad3 Always trim chunk GET in ChunkHolder
- Possibly something to do with #1169
2021-07-29 20:37:10 +01:00
84b9dce6be Move debug notes to logger factory 2021-07-29 21:11:23 +02:00
69067fe8c8 Leave a note about (temporary) not undoable tree tools 2021-07-27 19:45:31 +02:00
b4f9ade5bd Fixes #1071 2021-07-26 17:05:54 +02:00
92b4524dd6 Update Upstream
f414af5 Fix the offset mask forcing negation of itself (1656)
2021-07-26 00:48:38 +02: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 <mc.cache@web.de>
2021-07-24 16:34:05 +01:00
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 <mc.cache@web.de>
2021-07-24 15:52:08 +02:00
41f4aadf40 Update to 1.17.1 texture jar 2021-07-24 12:19:44 +01:00