3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-17 08:30:04 +01:00
Commit graph

1132 Commits

Autor SHA1 Nachricht Datum
dordsor21
2d2e152729
cleanup 2024-11-16 11:36:47 +00:00
dordsor21
2eb1455afe
FAWE-inate 2024-11-16 11:36:46 +00:00
Madeline Miller
f3b4152901
Add structure generator command
(cherry picked from commit 5ca80395a35100c2d7686ad8839baaa57f8db07c)
2024-11-16 11:36:46 +00:00
Maddy Miller
d07c6a6e03
Add a feature generator and allow undoing of feature placement (https://github.com/EngineHub/WorldEdit/pull/2239)
* Add a feature generator and allow undoing of feature placement [WIP]

Apply changes to Forge as well

Use proper translatable components

* Add a brush version of the feature command

Use Java proxy classes

* Add for Bukkit (only 1.19.3 for now)

Clean up the proxies to use a switch

Checkstyle is grumpy

Add the obfuscated versions

Remove debug text

Fix missed "destroyBlock" deobfuscated proxy function

* checkstyle
2024-11-16 11:36:46 +00:00
Jason Penilla
dcd6b93ebb
Build a Mojang mapped jar in addition to the reobf one, publish both to Modrinth with correct metadata (#2981) 2024-11-14 17:20:53 +01:00
Hannes Greule
e3fc35ce6d
Un-break for versions <1.21.3 (#2988)
* Use Bukkit Registry API where possible (#2573)

(cherry picked from commit 292dae65cb01929dc2158f09bdb19fdc82b3669f)

* compile against 1.21 instead of 1.21.3

* remove method

* Revert "Use Bukkit Registry API where possible (#2573)"

This reverts commit f260e19d29.

---------

Co-authored-by: Maddy Miller <mnmiller1@me.com>
2024-11-11 20:47:29 +00:00
Pierre Maurice Schwang
ef8426473a
1.21.3 (#2974)
* feat: initial work on 1.21.3 adapter

* chore: method does not exist anymore

* cleanup, deduplicate, drop old versions from runServer task

* chore: apply deduplicated fields changes from PR

* chore: remove jetbrains annotations references

* chore: remove unsupported versions from modrinth release task

* chore: adjust mondrinth versions, update issue template
2024-11-10 18:13:16 +00:00
Jordan
eb0f07af81
feat: alter clipboard thread to move all clipboard loading from main thread (#2867) 2024-11-06 17:16:03 +00:00
Hannes Greule
bd94632c47
Deduplicate adapter fields into superclass (#2967)
Move common adapter fields into supertype
2024-11-04 11:21:14 +00:00
Alexander Brandes
f0af979f5f
Release 2.12.0
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-10-25 20:33:44 +02:00
Jordan
b4635e85c9
fix: some improvements to GET chunk writing (#2853)
* fix: some improvements to GET chunk writing
 - ensure levelChunk is loaded before giving to copy GET - this is not necessarily guaranteed to be nonnull if two edits overlap. Whilst not advised, such an easy failure should not occur when two edits collide

* Prevent writing chunk sections when FAWE is also sending packets for a chunk and vice versa
- alter IntPair hashcode to be more often unique
- Utilise ConcurrentHashMap for free synchronisation

* Minor comment changes

* Use one-per-world-instance FaweBukkitWorld to store world chunk map
2024-09-25 18:20:49 +01:00
Hannes Greule
e8c7d67b5b
Fix regen on modern versions (#2881)
* work on regen

* simplify

* fix more regen

* cleanup, backport

* revert unneeded change
2024-09-14 10:48:59 +02:00
Hannes Greule
1e8778b528
Avoid deprecated CompoundTag in API (#2883)
* Avoid deprecated CompoundTag in API

* use javax annotations
2024-09-14 10:47:37 +02:00
Pierre Maurice Schwang
4b099d3588
fix(GriefDefender): invalidate mask on claim change (#2903) 2024-09-03 23:16:00 +02:00
Pierre Maurice Schwang
1ec87e7092
Support Sponge Schematic v3 (#2776)
* Update to Sponge Schematic 3

Includes a major refactoring of how schematics are read.

(cherry picked from commit bd475b1d4acbcf2a95e5a8f3aee50d2fb2100ae8)

* Licenses lol

(cherry picked from commit a5ce8a47657aa987da8ca625cd658856d2eb3477)

* Fix imports

(cherry picked from commit e1892b7bd4ff0ca4592f8cb4e1b2d9363c4cd6ff)

* Update for final changes

(cherry picked from commit 2f6b50a4276b33b615d9dbc52e73e958308735f9)

* chore: ensure flushed clipboard in spongev2 writer

* feat: initial work on FastSchematicWriterV2

* fix: only write into palette once, write into data as varint

* chore: more work on FastSchematicWriterV3

* fix: make FastSchematicWriterV3 work

* fix/chore: write pos as doubles

* chore: start on reader (class exists at least)

* chore: replace while loop with simple if as char can be max 2 bytes

* chore/feat: more work on the fast v3 reader

* fix: offset must be inverted for origin

* chore: use the actual FileChannel for mark / reset (if present)

* chore: add null check again

* chore: buffer streams in isFormat check

* chore/feat: read schematic fully

* chore: don't hold a lazyreference (seems harder to gc with already computed value?)

* chore: remove debugs

* chore: optimize FastSchematicReaderV3

* chore: remove logger warn for now

* chore: constant not required anymore

* chore/feat: support non-file based inputstreams (using in memory LZ4 cache)

* chore: don't wrap streams unnecessary

* chore: cleanup

* chore: since comment for reader + writer

* chore: FAST_V3 not for testing anymore

* chore: update schematic and clipboard logic for linbus changes

* chore: undo format check on load

* fix: remove usages of old nbt types

* fix: use LinBus in FaweDelegateSchematicHandler

* fix: use ReaderUtil again

* chore: update supported schematic types for Arkitektonika

* chore: check for magic bytes in schematic (not tested yet)

* revert: magic bytes check

* fix: fix paletteAlreadyInitialized + biome placement on linear clipboards

* Update worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicWriterV3.java

---------

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com>
2024-07-13 14:30:34 +02:00
RadND
ef064cbccf
Add worldedit.tool.none to fawe.permpack.basic (#2827)
Add missing permission node in fawe.permpack.basic in bukkit

If node "fawe.permpack.basic" exist in other platform than bukkit,this minor bug would exist here too,but i lack the knowledge of finding it out.
2024-07-07 15:16:39 +02:00
Jordan
fee9029bf0
Add a BiomeCategories API (#2338) (#2777)
* Add a BiomeCategories API (#2338)

* Add a BiomeCategories API

* licenses

* Use a supplier to retain the lazy-load & dynamicness of the existing system, but still retaining the inversion of control that this PR was intended to provide

* Minor fawe adapter cleanup

* Actually add the new files?

* Fixes

---------

Co-authored-by: Maddy Miller <mnmiller1@me.com>
2024-06-27 15:15:14 +02:00
Jordan
ad5739e014
ref: switch from adventure NBT to LinBus (#2778)
* Switch from adventure NBT to LinBus

* Cleanup

* Clean

* Reimplement NumberTag behaviour

* Use 0.1.0 release

* Fix build, remove fawe tags

---------

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2024-06-26 21:55:47 +02:00
Jordan
4fe9c6bd74
fix: correctly process chunks when using worldguard region blacklists (#2789)
- fixes #2399
2024-06-21 08:49:09 +02:00
Jordan
031fdf2efd
fix: ensure config-legacy.yml is created before accessed (#2752)
* fix: ensure config-legacy.yml is created before accessed

* Stop error attempting to load FAWE config if it doesn't exist
2024-06-13 20:31:45 +02:00
Jordan
865cc55a0e
feat: add #hotbar mask and pattern (#2769)
- closes #2765
2024-06-13 20:31:34 +02:00
Jordan
9843bb0188
chore: address deprecations from new records (#2768)
* Category should implement Keyed
2024-06-12 15:00:40 +02:00
Jordan
62297f9479
refactor: adjust chunk sending (#2770)
- synchronise on the chunk GET object (when available)
 - kick it off to be run at some point on the main server thread
2024-06-10 19:12:31 +01:00
Jordan
5714a52675
fix: correctly trim the max chunk section (#2753)
- fixes #2727
- fixes IntellectualSites/Plotsquared#4436
2024-06-05 21:23:12 +02:00
dordsor21
36d2c85fdb chore: address deprecations in vector classes 2024-05-31 18:52:49 +02:00
Jordan
f9c523c173
feat: move limits for (brush, superpickaxe and normal) radii to fawe (#2635)
- closes #2587
2024-05-24 15:09:57 +02:00
Hannes Greule
a353c12df0
Support for 1.20.5/6 (#2721)
* 1.20.6

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

* work

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

* More work

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

* chore: address more removed fields and methods, make it run

* chore: don't allocate unnecessary arrays (by maps)

* chore: the comment might still be noteworthy

* chore: no need to synchronize twice

* fix obfuscation changes

* remove unneeded deprecation

* make regen work without throwing exceptions - but slow

* fix: error when adapting BaseItemStacks without nbt

* fix annoying paper api breakage

---------

Signed-off-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
2024-05-19 13:32:18 +02:00
Pierre Maurice Schwang
c1e2f23f94
Fix error on adapting custom entities / entity types (#2674)
chore/fix: entity type adaption, more in line with upstream
2024-04-12 20:55:58 +02:00
Alexander Brandes
2d0ea9adf8
Reword tree type message (#2628)
Signed-off-by: Alexander Brandes <mc.cache@web.de>
2024-03-17 13:16:10 +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
d1e1d5105e
fix: invalidate cached allowed regions if WG region deleted (#2572) 2024-02-05 22:44:45 +01:00
dordsor21
9ffe76dce3
fix: add missing methods top TestOfflinePermissible 2024-01-28 13:32:25 +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
RedstoneFuture
ea6138ce1f
Unify the limit permission (#2420) 2023-12-07 18:26:21 +01:00
Jordan
769d8b3a7a
fix: set biome biome on clear (#2510)
* fix: set biome biome on clear
 - fixes #2509

* Nicer biome setting method
2023-12-07 18:24:05 +01:00
Alexander Brandes
b754bc01e2
Drop support for 1.16.5 and 1.17 (#2497)
Drop support for 1.16.5
2023-11-26 13:35:29 +01:00
Hannes Greule
c0a2eef648
Reuse generateTree code across versions (#2482) 2023-11-21 17:26:11 +00:00
Alexander Brandes
38fc4cf541
Release 2.8.2 2023-11-03 15:07:12 +01:00
Hannes Greule
6bd1382872
Reuse starlight relighting code across versions (#2474) 2023-10-31 21:00:46 +01:00
Hannes Greule
256ef74452
Cleanup rawtypes warnings in relighting code (#2472)
remove unneeded generic type
2023-10-26 21:14:27 +02:00
Hannes Greule
8c5bb96fdd
Streamline fawe thread names (#2467)
streamline fawe thread names
2023-10-21 17:48:35 +02: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
Hannes Greule
60a3994d62
Clean up some regen code (#2405) 2023-09-09 16:07:29 +02:00
Alexander Brandes
4def201daa
Adapt new test methods 2023-08-26 17:13:24 +02:00
Maddy Miller
a088e6a96b Remove the Bukkit legacy data folder migration code from 11 years ago (#2383)
(cherry picked from commit EngineHub/WorldEdit@7f81aad028)
2023-08-10 19:10:04 -04:00
Alexander Brandes
e81980651e
Cleanup dependencies 2023-08-09 20:52:18 +02:00
Jeff P
50e45f07f0
fix: Do not tab complete if command not owned by FAWE (#2386) 2023-08-02 14:08:58 +02:00
Alexander Brandes
9ae04b8d40
Update v7 notification 2023-07-31 11:44:14 +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
dordsor21
0a19f643b6
fix #2349 2023-07-11 16:39:53 +01:00