Commit Graph

780 Commits

Author SHA1 Message Date
016b4ba81d fix: Unify superpickaxe behavior (#1553)
Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1547
2022-01-21 14:41:24 +01:00
d17e3a6555 chore: Add missing Fawe annotations to //regen command 2022-01-19 13:58:52 +01:00
9e40b972b1 refactor: Put Fawe version information at debugpaste to (#1533) 2022-01-12 01:22:24 +01:00
4754f660c7 Fix #1524
Also brings in line with upstream
2022-01-08 17:46:28 +00:00
64442a8051 refactor: Tackle a few Semgrep and ErrorProne violations (#1520)
* refactor: Tackle a few Semgrep and ErrorProne violations

* Address comments
2022-01-07 12:45:53 +01:00
c27a34ce40 feat: Add worldedit.schematic.list.other permission and functionality (#1507)
* Add worldedit.schematic.list.other permission and functionality

* Implement StringMan#containsUuid

* Javadocs

* chore: Add since annotation

Co-authored-by: NotMyFault <mc.cache@web.de>
2022-01-05 16:21:44 +01:00
235d0360da Don't wrap Exception thrown upon invalid schematic path inside a RuntimeException
Fixes #1506
2021-12-29 16:55:32 +00:00
36857a5064 Fix #1490 2021-12-28 23:02:48 +00:00
7da921e075 refactor: Deprecate IMP initializors in favor of builders 2021-12-22 20:58:23 +01:00
d6e3c331d4 Make 1.18 to be effectively in a usable state (#1452)
* Update swathes of easy-to-update-sort-of-code.
 - Untested
 - Should compile but NMF broken something
 - Several todos:
  - biome history//better support (move to biome sections in core)
  - regen (haha lol no thanks, someone else can do that)
  - probably actually do the palette stuff that probably won't work in PaperweightPlatformAdapter

* ci: Provide basic Jenkinsfile for ghprb pipeline

* build: Update paperweight

* upstream: Update Upstream

de6fa17 Add getBrush helper for use with instanceof pattern matching (1926)

* FAWE will now load on startup

* it....works?

* Begin to allow biome edits (and fix biomes reverting to plains upon editing blocks)

* Add new blocks/block properties

* Only create biome palette if supplies is null

* Fix biome operations

* Finally get removing BlockID done (major version change allows it)

* refactor!: Drop PlotSquared v4

Fawe 2.0.0 and newer requires Java 17, PlotSquared v4 supports 1.13 and 1.14, Fawe wont work on these versions nevertheless and refuses to load due Java version incompatiblities with older versions. Newer versions can use PlotSquared v6.

* docs: Update readme

* Added and removed some comments

* Added and removed some comments

* refactor: Rename worldedit configuration

* build: Re-add 1.17 module

This the a very nasty commit

* chore: Implement missing methods

* build: Update paperweight

* upstream: Update upstream

6df194e Remove finalize, use a Cleaner instead (1943)
9843a4f Fix snapshots in 1.18 (1959)

* ci: Escape workflows

* build: Update paperweight to 1.18.1

* build: Update Paster

* Fix compilation

* Bump to 1.18.1

* Do both 1.18 and 1.18.1

Co-authored-by: Alex <mc.cache@web.de>

* Fix single-block lookups

* Reserve ordinals 0 through 3 for air/"reserved"

* Create block palette data with values

* Fix classpath for testing for starlight

* Correctly use block rather than sky light layer [not used in paper]

Co-authored-by: NotMyFault <mc.cache@web.de>
Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2021-12-20 21:12:04 +00:00
0b45248b8c style: Use minimized version output 2021-11-29 22:15:41 +01:00
a2df590fae feat: Add worldedit.schematic.save.global permission (#1406) 2021-11-12 14:21:06 +00:00
c55bc8c05f refactor: Move update checker to core
feat: Add permission for tracing
2021-10-23 19:36:59 +02:00
bd9476a175 refactor: Address .editorconfig violations 2021-10-18 23:09:21 +02:00
9c1c8bfdf2 Implement restoring biomes, entities, and extended world heights (#1316) 2021-10-17 13:40:55 +00:00
27865dc785 chore: Exchange debug log levels & component-ify a few messages (#1342) 2021-10-17 14:50:42 +02:00
6839fa5567 Add configurable disallowed states for limits, global disallowed blocks (#1312) 2021-10-09 11:02:26 +00:00
6895234815 Don't allow edits on plots when owner is offline and player is only added (#1313) 2021-10-04 12:34:40 +00:00
7a6a0f68fe Don't allow area pickaxe outside max y
#1331
2021-09-30 13:16:15 +01:00
0ed98729f8 Allow console to execute commands now that editsessions etc. accept actors
- Fixes #724
 - Fixes #1044
2021-09-28 15:59:52 +01:00
1cf5899586 Allow deletion of DOC
Fixes #1325
2021-09-27 14:39:21 +01:00
b73db47e01 Add switch to schem loadall to replace existing clipboard(s) 2021-09-27 14:15:26 +01:00
d25a85e0d4 Fix expression evaluation method used for generatebiome
#32
2021-09-22 15:03:03 +01:00
57b47d2451 Use a MaskTraverser to set extent where it will be a WorldWrapper otherwise 2021-09-21 14:59:49 +01:00
23ca345a2e Don't setextent twice in replace 2021-09-21 14:51:39 +01:00
971977a66a Fix //sel list 2021-09-21 14:51:05 +01:00
d0056870be Fix fuzzy region 2021-09-21 14:31:03 +01:00
4f68fb0e26 Add tracing feature to EditSessions (Upstream 1301) (#1112)
Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
Co-authored-by: dordsor21 <dordsor21@gmail.com>
Co-authored-by: NotMyFault <mc.cache@web.de>
2021-09-19 20:02:41 +00:00
abaa98d2a9 Fix #403 2021-09-19 20:47:21 +01:00
0a48765c98 Add //blob command equivalent to //br rock 2021-09-18 17:42:58 +01:00
7d032ba69f Scattercommand should use the same editsession for all commands, make it "silent" by default and allow players to see output if wanted. 2021-09-18 17:42:40 +01:00
51aa500857 move yscale earlier in br height for people that can't work it out themselves 2021-09-18 16:20:28 +01:00
1cc6ad1481 Fix #1049 2021-09-17 17:26:41 +01:00
90aeb48040 Fix #1297 2021-09-17 17:12:14 +01:00
3088b1245c Simplify flushing of clipboards in ClipboardCommands 2021-09-13 15:07:16 +01:00
fcbbc72a19 Refactor the try-catch for copy/cut commands, switch to saveDiskClipboard instead of closing the clipboard on error
Address #1291
2021-09-13 13:19:57 +01:00
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
f29d68b16e Update Upstream
fbf61ef Fix raise and lower deform brushes (1889)
2021-09-11 10:15:44 +02:00
db24b429c1 only close clipboard on error during copy
apply to //cut as well
2021-09-11 00:27:26 +01:00
470ba64fe4 Fix #1260 2021-09-10 17:46:21 +01:00
195a13a23c some codestyle application 2021-09-08 16:39:43 +01:00
d236470df8 Update Upstream
b1c230d Add conditional checking in help command (1888)
b4fbbc9 Move clearable checks for Bukkit to adapters (1887)
2021-09-04 10:31:31 +02:00
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
c0893a404d Set default number of iterations for snow smooth brush to 1. 2021-08-23 21:27:35 +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
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
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
57f7c93033 Fix history rollback
- Fixes #959
2021-08-08 19:35:57 +01:00