Use SnakeYaml 1.32+, set loader code point limit. (#2194)
Defaults to 64MB, can be set via -Dworldedit.yaml.codePointLimit sysprop.
Fixes #2193, EngineHub/WorldGuard#1953. (0ef38b52 by wizjany)
Work around invalid legacy values in schematics (#2171)
* Work around invalid legacy values in schematics
* Actually apply it to blocks lmao
* Micro-optimisation to reduce identical duplicate map lookups (7e61ff19 by mnmiller1)
Catch InvalidPathException in safeFile handler (#2167)
(55e2d3d4 by mnmiller1)
Back to SNAPSHOT for continued development
(d18149ee by mnmiller1)
MC 1.19.1 (#2159)
* [Fabric] Bump versions to 1.19.1.
No code changes needed.
* [Bukkit] Add 1.19.1 DV to 1.19 adapter.
No mapping changes. Devbundle left untouched for now.
* [Forge] Bump versions to MC 1.19.1. (9ef6e5bd by wizjany)
Increase memory for daemon
Thanks loom
(a8a3633b by octavia.togami)
[Fabric] 1.19-pre1
- new TextComponent -> Component.literal
- Use sendSystemMessage instead of displayClientMessage(..., false)
- build -> buildUnoptimized/buildOptimized; I just returned the same
from both
- Create a LevelStem for regen world constructor
- Use RandomSource instead of Random
- Command text doesn't include the slash anymore
(66e3c3cd by octavia.togami)
Fixed //stack erroring when given a count of 0 (#2108)
(31e5298f by mnmiller1)
Cache properties to reduce startup memory (#2103)
* Cache properties to reduce startup memory
* Apply PR review notes
* Remove import (c515eb5f by mnmiller1)
Play around with SpongeForge (#2107)
(c83f6ecd by mnmiller1)
Update CodeQL action to v2
(92dfdcb8 by octavia.togami)
Increase default BlockState count (#2102)
(15bd7ff4 by mnmiller1)
Fix fastutil on sponge (#2099)
VG excludes the wrong version, PR has been made (8ddd3179 by octavia.togami)
Fix block state mask with string properties (#2091)
(3eefaa29 by mnmiller1)
Bump paperweight + bundle to fix build
(14ecf932 by octavia.togami)
Bump adapter jar.
https://github.com/EngineHub/worldedit-adapters/pull/31
(27b29453 by wizjany)
Revert "Fix sponge."
This reverts commit 677ce55a92b7bd629d86bd161d6f35836a4e57d0.
(027a6078 by wizjany)
Fix passenger entity saving and loading (#2058)
* Fix incorrect saving and subsequent loading of passenger entities in vehicles.
Originally from https://github.com/EngineHub/WorldEdit/issues/1763#issuecomment-1062429891.
Co-authored-by: wizjany <wizjany@gmail.com>
* Port to Fabric/Forge.
Rewrite in Sponge to use EntityArchetype.
Sponge is untested because WE doesn't properly build/run on it right now apparently?
* NBT Constants.
Co-authored-by: Red_Epicness <red.epicness@icloud.com> (e715ccc3 by wizjany)
Merge pull request #2062 from EngineHub/fix/mixin-mixup
Un-mixup the mixins. (356cd2c8 by octavia.togami)
Defeat the duplication dilemma.
(b8d42ac5 by wizjany)
Forge requires explicitly defining the refmap in the mixing config
(5e49f69f by mnmiller1)
Remove afterEvaluate to restore refmap
MixinGradle uses an afterEvaluate block to determine JAR registrations.
This runs before our reobf registration does, and I honestly don't
recall why this was in afterEvaluate and it doesn't appear to break
anything so I'm calling it good.
(b4b018d6 by octavia.togami)
Make some improvements to the Forge side - still not fixed
(dd696172 by mnmiller1)
Un-mixup the mixins.
This properly separates the forge and fabric mixins in the merged -mod jar.
By some miracle Forge was 'working' with the Fabric mixins, but this is probably safer overall.
(b8d096ba by wizjany)
Use Forge's official tag API
(59742162 by octavia.togami)
Change vector command converter wording. (#2059)
Hopefully will cut down on questions of how to use `//pos x,y,z`. (5843aa50 by wizjany)
Fluid masks for forge/fabric. (#556)
Closes #877. (f50a81fc by wizjany)
Don't access PluginClassLoader directly (#2045)
(44863cf5 by mail)
Revert to v2 setup-java
https://github.com/actions/setup-java/issues/295
(e21ab6a7 by octavia.togami)
[Forge] 1.18.2
Plus bonus debug and Fabric improvements
(a6c05c22 by octavia.togami)
[Bukkit] Remove nbt tricks from adapters
(8c83ef80 by octavia.togami)
[Fabric] 1.18.2 update
(ce13ed99 by octavia.togami)
Apply update flag on later change (#2037)
* Apply update flag on later change
* Checkstyle
* Move entry point for UPDATE (30e16014 by mnmiller1)
Play dirty because bukkit classloading is bad. (#2043)
* Play dirty because bukkit classloading is bad.
Fixes #2042.
* Make logging more Bukkit-friendly.
* Checkstyle (eac5b51b by wizjany)
Change the class source validator to use classloaders for detection. (#2039)
Since each plugin now has a semi-isolated classloader, checking the codesource of our classes will always give our own plugin back.
Instead, we iterate through every other plugin and ask *its* classloader to load the class. If the loaded class lives in a different classloader than our own, we know it (or someone else) has a different version. (e2ab12c3 by wizjany)
Allow biome commands to be used from non-player actors (#2034)
(76ec878e by mnmiller1)
Move tinyurls to ehub.to (#2033)
(17b9f005 by octavia.togami)
Fix Forge max height limit (#2028)
* Fix Forge max height limit
Because this method was silently renamed, we've been using the wrong one
for a bit.
* forge team plz update special source for my fix (8929ad20 by octavia.togami)
Back to SNAPSHOT for continued development
(86277d1e by mnmiller1)
Use Chunk#getNoiseBiome instead of biome container (#2025)
This is just way easier, and not buggy! Fixes #2012 (ab31481e by octavia.togami)
Fix regen on newer Forge due to removed method (#2021)
* Fix regen on newer Forge due to removed method
* Use saveWithFullMetadata (e118e3df by mnmiller1)
Fix legacy error message output for WorldGuard commands (#2023)
(e4854338 by github)
Update worldedit-sponge to API 8 (#1771)
* Sponge 8 work
Remove text adapter
Debugging the bugs out
* Resolve compiling for latest Sponge
* Update for latest SpongeAPI 8 snapshots
* Fixed a few issues with Sponge8 WorldEdit. Command completions are still broken.
* Resolve completions
* Bump to Sponge API 8 release
* Remove VALIDATION as a supported SideEffect on Sponge for now.
* Append Sponge API version to archive name
* Implement regeneration on Sponge; currently hangs due to a Sponge bug.
* Fixed typo
* Fix commands without permissions and version handling
* Make changes from PR comments and re-add bStats
Co-authored-by: Madeline Miller <mnmiller1@me.com> (fb503247 by octavia.togami)
Fix Fabric regenerate outside of overworld (#2016)
* Fix Fabric regenerate outside of overworld
* License (ab61a849 by mnmiller1)
Remove extra label from bukkit command usage string.
This is never actually shown anywhere since we use our own help factory, but
apparently the bukkit api exposes it so...
(0ad3ab14 by wizjany)
Add the UPDATE SideEffect to Forge (#2000)
(512a07ea by mnmiller1)
Fix error for snapshot restore missing chunk
(fb5ec199 by octavia.togami)
Fix for #1983, Use Math.floor instead of int cast (#1986)
(3fa364b4 by github)
Bump Paperweight to allow 1.17 adapters from source
(92dfe5e4 by mnmiller1)
Fix snapshots in 1.18 (#1959)
* Fix snapshots in 1.18
* use Int2ObjectOpenHashMap
* Fix loading zipped snapshots that contain an entities folder
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (9843a4fe by hannos17)
Update gradle flow properly
(100b87ea by octavia.togami)
Update flows from master
(12e1c242 by octavia.togami)
Extract log4j version to Versions.kt.
Also bump to match underlying platform versions to resolve runtime
version mismatches.
(20c42b51 by wizjany)
Version bumps for bukkit/fabric 1.18.1
(22816cff by wizjany)
Fix BlockEntity saving on Forge.
(bfef9962 by wizjany)
Merge pull request #1939 from EngineHub/snapshot-testing/1.18
1.18 (6e106c16 by wizjany)
Merge branch 'version/7.2.x' into snapshot-testing/1.18 (5ce37d7a by wizjany)
Clean up forge gradle script, apply the chorus plant fix to forge/fabric world.
(46de95ff by wizjany)
Bump some versions, fix forge run configs.
(a8656c5f by wizjany)
Remove height from //expand vert.
With new world height limits, this will cause more confusion than good.
`//outset -v` or `//expand u,d` can replicate the previous behavior.
(f5328271 by wizjany)
Bump version numbers and stuff for 1.18 release.
(6760ad71 by wizjany)
Make Paperweight adapter run on 1.18rc3.
(979b5227 by wizjany)
Shove 1.17 adapters into a jar to fix the build
(44d91b0c by octavia.togami)
Bump paperlib dep.
Fixes a bug with detecting pre-release versions.
(1aad9218 by wizjany)
Update paperweight dev bundle
(511daa50 by octavia.togami)
If a trace hits the world limit, cancel it (#1942)
(29f1c661 by octavia.togami)
Re-add class shutter with tweaks. (#1947)
We want to hide default-package classes, such as "com", "io", etc. which are common names
in Mojang obf classes but also common package names, without hiding generated default-package
classes such as described in #1895.
This reverts commit 6008fe73 (c4074717 by wizjany)
Update Kotlin version so it builds
(21e65e39 by octavia.togami)
[Fabric] Update to 1.18-pre4
(953e22fc by octavia.togami)
Specify UTF-8 for javadoc as well
(9928bc85 by octavia.togami)
Back to SNAPSHOT for continued development
(3ba08901 by mnmiller1)
Release 7.2.7
Signed-off-by: Madeline Miller <mnmiller1@me.com>
(9f3e7955 by mnmiller1)
Don't allow editing without a Bukkit Impl Adapter. (#1920)
* Don't allow editing without a Bukkit Impl Adapter.
Also fix up some failed adapter checks.
* Make config a string, log warning message.
* checkstyle (d48530cb by wizjany)
chore: improve bukkit world access speeds (#1911)
(49bc9b0c by mnmiller1)
Move adapters to paperweight (#1909)
* Move adapters to paperweight
* Edit adapters JAR to remove 1.17 R1_2
* Fix checkstyle
* Add URL for updating version in the future (e6857ec7 by octavia.togami)
Remove class shutter
Runtime classes are no longer conflicting. Fixes #1895.
(6008fe73 by octavia.togami)
Fix raise and lower deform brushes (#1889)
(fbf61ef9 by mnmiller1)
Set Multi-Release in CLI manifest
Fixes #1890
(6c08b682 by octavia.togami)
Move clearable checks for Bukkit to adapters (#1887)
* Move clearable checks for Bukkit to adapters
* Apparently this is faster??? (b4fbbc9c by mnmiller1)
Add conditional checking in help command (#1888)
(b1c230d3 by mnmiller1)
Update Bukkit adapters for world gen change.
(1173385a by wizjany)
Back to snapshot for future development
(4235622e by mnmiller1)
Use MethodHandle for faster event bus (#1865)
* Use MethodHandle for faster event bus
* Implement hashCode/equals
* Apply review comments
* Bind to the object directly (4277cb52 by mnmiller1)
Fix Cycler tool not using full block data (#1868)
(8ee45137 by mnmiller1)
Use a Guava Cache instead of a ThreadLocal (#1862)
This allows high performance without leaking memory, and works around
the JVM bug with ThreadLocals. See #1722. (b9f04166 by octavia.togami)
Exclude JSR305 from libs
Fixes #1859
(96c97997 by octavia.togami)
Add Beta 2 changelog items
(6af752ba by mnmiller1)
[Forge] Update to 1.17.1 (#1847)
* [Forge] Update to 1.17.1
Includes minor updates to Fabric as well.
water and water and water water
* Fix a few things
* Move to latest versions of FG/Forge
Also drops TrueZIP in dev (2e45a203 by octavia.togami)
Only map options if needed to replace seed (#1843)
* Only map options if needed to replace seed
* Add bukkit adapters.
Co-authored-by: wizjany <wizjany@gmail.com> (86866721 by octavia.togami)
Fix the offset mask forcing negation of itself (#1656)
(f414af50 by mnmiller1)
Fix deployment of -cli artefacts
(cfd20982 by mnmiller1)
Fixed typo and grammar
(fb1fb849 by 4009945+mattbdev)
Support 48x48x48 drawsel on 1.16+ (#1826)
* Support 48x48x48 drawsel on 1.16+
* Also update the chat message on //drawsel
* Extract the code
* Split the x/y/z
* angry reacts only (8b38f6fb by mnmiller1)
Optimize legacy schematic loading (#1808)
* Optimize legacy schematic loading
* Be more DRY (fbb047a0 by octavia.togami)
Fixed incorrect version numbers in javadocs (#1810)
(f91e8e40 by 4009945+mattbdev)
Skip notify if chunk section doesn't exist (#1794)
* Skip notify if chunk section doesn't exist
* Include forge in this change
* Pass chunk to mark/notify directly, update adapters.
Co-authored-by: wizjany <wizjany@gmail.com> (728a1523 by octavia.togami)
Remove method reflection for getMinHeight in BukkitWorld. (#1796)
* Remove reflective use of the getMinHeight method in BukkitWorld.
Which requires dep updates to 1.17, which may currently break this build?
* Tell Gradle we can read Java 16 JARs
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (43da91ad by wizjany)
Use require instead of strictly to reduce problems with mojang/bukkit updates (#1787)
(eb7b79c9 by github)
Fix watchdog, add negative y support. (#1782)
(a57f66f7 by wizjany)
Fix Scuffed POMs (#1779)
* Repair fabric POM
* Fix-up a ton of publishing errors
* Remove shadow jar from publishing
* Remove shadow application from platform/core (043c3315 by octavia.togami)
Restrict the weird forge maven to known content
(47b64257 by octavia.togami)
Update bundled language files
(e2ad0427 by octavia.togami)
[Fabric] Update to 1.17 (#1772)
(7676a2d5 by octavia.togami)
Register platforms and commands in a more proper way (#1766)
* Register platforms and commands in a more proper way
Platforms are now register "on load"/initialize/etc., and preferreds are
chosen just prior to command registration events. This allows us to
properly hook in to reload. Additionally, we now have the capability to
reload data with /minecraft:reload, though this is not yet implemented.
* Correct javadocs on queryCapability
* Flatten BukkitImplAdapter Lifecycled (95160027 by octavia.togami)
Use 16 as our toolchain, but set release to 8
(8cfbf7e4 by octavia.togami)
Fix selecting at 0,0,0 or radius 0 cyl/ellipse (#1734)
(5a7cbfd6 by octavia.togami)
Prepare for Gradle 7, but due to FG only get to 6.9
Gradle 7 stuff requires FG 5. Phooey.
(876108fd by octavia.togami)
Return false if Entity#remove is unsupported
Fixes #1729
(95d784f4 by octavia.togami)
Update FG for new maven repo
(14686740 by octavia.togami)
Back to snapshot for future development
(edf39b2b by octavia.togami)
Allow toggleplace to work on any Actor + Locatable (#1723)
(98adde2c by octavia.togami)
Switch to maven-publish (#1718)
* Update to use maven-publish instead of maven
* Use published loom
* These shouldn't be needed (f0a3848b by octavia.togami)
Note catch about toolchain system
(c91159a2 by octavia.togami)
Swap out logback for log4j2
(c7da4c0a by octavia.togami)
Change oak stair shape to straight in legacy.json. (acf9c3b2 by wizjany)
Scrapped Logging Framework 4 Java (#1715)
* The scramble is complete
* Fix version decl for Bukkit Log4J
* Swap out to a compatibility layer for LogManager
Slightly slower, but compatible across all Java versions
* Piston released with SL4JF removal
* Clean up declarations a bit (609c7b8c by octavia.togami)
Update extractor, see if that fixes anything
(386656ff by octavia.togami)
Slightly improve usability of LocalSession#getSelection. (#1714)
Allow the World param to be null, throwing IncompleteRegionException.
This allows calling `getSelection(getSelectionWorld())` without having
to separately null-check the World.
Also, add a convenience overload which does so: `getSelection()`. (acd63dad by wizjany)
Back to snapshot for future development
(6941d955 by mnmiller1)
Show a message with install instructions when running the jar file (#1682)
* Show a message with install instructions when running the jar file
* Typo
* Fixed checkstyle issue
* Slightly modify message to adapt to the type of install
* Clean up the display code a lot
* Allow line breaks before semi
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (d3810865 by mnmiller1)
Fix gitattributes (#1681)
* Try to fix git attributes
* More attempts to fix gitattrs (3e819df4 by octavia.togami)
Back to snapshot for future development
(6cad9a03 by mnmiller1)
Move slower translation to *Transmogrifiers (#1679)
* Move slower translation to *Transmogrifiers
Adapters now use the fast method for adapting if available. Un-cached
accessors are stored in *Transmogrifier classes.
* Fix warnings and licenses. (3c161db9 by octavia.togami)
Improve speed of BlockState init, tick watchdog (#1680)
(e94f082b by octavia.togami)
Disable Fabric UPDATE mixin if quickcarpet too
Fixes #1662, though I really hate doing this.
(8a466703 by octavia.togami)
Fix SLF4J binding loading
Fixes #1676
(3e07d723 by octavia.togami)
Allow UPDATE mixin to soft-fail on Fabric (#1654)
This allows Carpet's mixin to take priorty, and UPDATE will simply be
disabled on Fabric in that case. Fixes #1605 (56c89194 by octavia.togami)
Boost TileEntity clear performance, with extra boost on Paper (#1652)
* Boost TileEntity clear performance, with extra boost on Paper
* :( (4095a086 by mnmiller1)
Update so many dependencies, merge Forge/Fabric for final jar (#1651)
* Update so many dependencies, merge Forge/Fabric for final
* Clean up contrib docs for Gradle change
* Fix setting compat flags while using toolchain
* Fix deprecation in doc printer
* Restore proper forge JAR name
* Add dist classifier for mod jar
* Properly relocate new bStats
* Fix jar used from fabric
* Fix fabric bom
* Dup the shaded classes for consistency
* Sync Forge/Fabric log4j versions, de-dup
* Downgrade both log4j. This will work
* Update some plugins as well
* Drop the fabric force stuff
* Use duplicate strategy to directly merge jar (9534a9cf by octavia.togami)
Update Bukkit adapter for 1.16.5.
Just a data version bump. Barely dodged the mapping changes this time.
(ef9af59c by wizjany)
Alter the CUI lifecycle to be more consistent and reliable (#1633)
* Alter the CUI lifecycle to be more consistent
This handling reduces the platform-specific behaviour of CUI handshakes,
and ensures that the appropriate state is maintained when a client
connection ends but a LocalSession remains cached.
* Apply review suggestions
* fabric: Update to new networking API
* session: Correct field grouping for cui attempts (0036e06f by zml)
Correct ellipsoidal selector initialization (#1632)
When the previous selection was a non-ellipsoidal region, the
started flag would not be appropriately set until a new selection
had been started. (f04ae2f1 by zml)
Run the chunk deleter in Fabric (#1641)
(3a3bf3de by octavia.togami)
Support Lucko's Fabric Permissions API (#1638)
* Add support for Lucko's Fabric Perms API
Only if present, falls back to the existing checks if it returns
`false`.
* Only use vanilla fallback if no value set in Perms (86bf3a34 by octavia.togami)
Fix failure caused by previous commit
(e0dd2f3c by octavia.togami)
Remove superclasses of mixins where not needed
(52015386 by octavia.togami)
Fix SideEffectSet.none() being the default set (#1620)
* Fix SideEffectSet.none() being the default set
* Remove the unnecessary private empty constructor for SideEffectSet
* Back to ImmutableMap.of (98c4580d by mnmiller1)
Properly repeat extents for negative coordinates
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)
(544793d5 by hannesgreule)
Back to snapshot for development.
(df2eb157 by wizjany)
Update adapters to fix #1586.
(bb464a6f by wizjany)
Persist default state of selwand and navwand in session (#1600)
* Persist default state of selwand and navwand in session
* Fixed some issues with the way it retained info
* Fixed it setting the wrong item
* A little cleaner
* I somewhat misunderstood the way this system worked - This is cleaner and works a lot better
* Replace with octy-approved UX
* Improve logic for default wand loading
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (15cba009 by mnmiller1)
Implement UPDATE for Fabric (#1598)
* Implement UPDATE for Fabric
* Fix a minor threading problem (3637d94a by octavia.togami)
Always load internal strings.json for default locale
(d0e6f9f3 by octavia.togami)
Update language bundle
(be4d8a08 by octavia.togami)
Update c-dist to upload strings
(9667acf3 by octavia.togami)
Add instructions for unbinding tools/brushes on equip. (#1595)
* Add unbind instructions to tool/brush commands.
* Switch to suggest.
* Make component final.
* Start suggesting the unbind alias instead. (d6b42a48 by wizjany)
Add the missing y variable to generate biome
(cc1f530a by octavia.togami)
Lower-case wand items on retrival from the config
(4999018f by octavia.togami)
Properly deploy version into core/bukkit
(b4e5bc7d by octavia.togami)
Back to snapshot for bugfixes
(2dc66964 by octavia.togami)
Update changelog for 1.16.4
(8268bc88 by octavia.togami)
Use the new lang version format
(a615e011 by octavia.togami)
Update crowdin-distributor for a small fix
(192120e0 by octavia.togami)
Ensure that the wand can be used before giving it (#1566)
* Ensure that the wand can be used before giving it
* Add a note to //wand about new perm requirements
* It's an item, not an "object"
* Fix checkstyle (367d95c6 by octavia.togami)
Fix licenses in doc files
(5876f184 by octavia.togami)
Actually overwrite existing files in archiveunpack
Fixes #1567
(a2243be3 by octavia.togami)
Update doc printer for lang changes
(f449e55f by octavia.togami)
Fix loading dev i18n files
This forces the repo file to FULLY OVERRIDE the default locale. Nothing
will be loaded from the default locale in either the config folder, or
the i18n dependency.
(83e744ba by octavia.togami)
Make /toggleeditwand translatable
(56182ad0 by octavia.togami)
Use /tool in /toggleeditwand description
(e3208339 by octavia.togami)
Back to SNAPSHOT for continued development
(411ebcc0 by mnmiller1)
Add ^x,y,z relative offset support to the offset parser (#1545)
* Add ^x,y,z relative offset support to the offset parser
* Wrap in a try-catch (28bdf7ff by mnmiller1)
Fix license/checkstyle
(6073f656 by octavia.togami)
Only use POSIX perms if supported
(c2d81824 by octavia.togami)
Move to packaged translations (#1555)
* Move to packaged translations
* License that file
* Fix some checkstyle too
* Support reloading translation files
* Add missing dash for unpack directory
* Mark unpacked zips as owner-only (bc64990e by octavia.togami)
Add -w flag to butcher for water mobs (#1548)
* Add -w flag to butcher for water mobs
* PR feedback (beb784e0 by lewisjb)
Make block positions copy on click for //size (#1546)
* Make block positions copy on click for //size
* PR feedback (6925d371 by lewisjb)
Mention best way to reduce test time.
(2b868ce0 by the.sk89q)
Update README with steps to get it running for dev.
(22269804 by the.sk89q)
Fix another small error in c-dist
(83a9fd8f by octavia.togami)
Fix script bug for c-dist
(b60b1447 by octavia.togami)
Update c-dist version
(e947d2fc by octavia.togami)
Fixed snow being placed through slabs (#1541)
* Added a method to check whether a block can be placed at a location
* Make the snow system only place at locations that it can by game logic
* Make canPlaceAt a default method
* Fixed PR comments
* Use a World field
* Just throw directly
* IAE makes more sense
* Remove unused import
* Check for editsession without a world (26d83068 by mnmiller1)
Fix exec perms on c-dist.sh
(3e052e91 by octavia.togami)
Only run c-dist on change
(787d0894 by octavia.togami)
Add crowdin-distributor script for lang files
(be22960b by octavia.togami)
Create an asset system, and add an image brush that uses it (#1514)
* Asset/Image brush management
* Create a beta assets system and make it a heightmap brush
Co-authored-by: KennyTV <jahnke.nassim@gmail.com> (ec306cca by mnmiller1)
Lower-case registry arguments in converter
Fixes #1542
(8377a6bd by octavia.togami)
Allow stacking by block units with //stack (#1539)
* Allow stacking by block units with //stack
* Delegate out the old method
* Use CuboidRegion as the type of the new region
* Fixed up PR notes
* Add docs
* No indent
* Formatting
* Use the bounding box rather than limiting it
* Don't limit to cuboid
* Make the old one use the block unit method
* Update the selection movement too
* Fixed affected being missed
* Use an assertion erorr (a1313a0e by mnmiller1)
Check limit == -1 in the copy/cut code.
Fixes #1540.
(25957c44 by wizjany)
Use block change limit for //copy and //cut (#1536)
* Use block change limit for //copy
* Use a cuboid region for accuracy
* Add a bounding box method to Region and use that
* Update worldedit-core/src/main/java/com/sk89q/worldedit/regions/Region.java
Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (fd8dbdd7 by mnmiller1)
Update the CraftScript README and SUBMITTING files
(a095b284 by mnmiller1)
Deprecate the non-Pattern methods in EditSession and fix a recursion loop (#1535)
(eca310cf by mnmiller1)
Fix variable argument functions in expressions
Fixes #1531
(204ef7a7 by octavia.togami)
Store a set of offsets, not a list
(3094e7a6 by octavia.togami)
Add a builder for OffsetsMask(2D)
(534e7d3e by octavia.togami)
Added an OffsetsMask, with a parser for an Exposed/Surface mask
(46bcbe46 by mnmiller1)
Removed redundant calculation in schematic commands
(d47f59e0 by mnmiller1)
Remove data versions from the Bukkit adapters (#1507)
* Remove data versions from the Bukkit adapters
* Don't allow saving schematics without an adapter in place on Bukkit.
* Removed confusing line (2056218b by mnmiller1)
Back to SNAPSHOT for continued development
(deb5e440 by mnmiller1)
Move connections to neighbors update
(e575ffef by octavia.togami)
Fixed broken javadoc in RegenOptions
(ea1a5122 by mnmiller1)
Fix //chunk text and clarify the y-index in the help text.
Closes #1447.
(e0b8b485 by wizjany)
Workaround for snapshot files with not-to-spec slashes.
(beca3a70 by wizjany)
[Fabric, Forge] Update build files for 1.16.3
No actual changes, beta 4 is functional, but this was to ensure it
compiled.
(8e53aa08 by octavia.togami)
Add one to max point to match our regions better
Fixes #1522.
(15467e94 by octavia.togami)
Reject empty split array in block parser
Fixes #1521.
(493bc2d1 by octavia.togami)
Improve requireTag exception messages
Closes #1519
(e15d7993 by octavia.togami)
Fixed undo/redo not working from console/commandblock (#1518)
(65fbe09c by mnmiller1)
Remove Y limits if a region has no world
(0cb1eea5 by octavia.togami)
Add a #air mask, the opposite of #existing (#1511)
(84fa2bbb by mnmiller1)
Deprecate BlockQuirkExtent, handle lower down
Ice is no longer turning into water since before 1.7.10, so that part has been
removed entirely.
(3996998c by octavia.togami)
Fixed non-Exception throwables being ignored in async tasks, and added a timed message (#1503)
* Fixed throwables being ignored and show a message while waiting for long running tasks
* Fixed checkstyle issue
* Use a better system that's more versatile
* Require a delay message for delayed repeating messages
* Few changes for PR review
* Changes based on feedback
* Fixed weird missed diffs
* Rename fields
* 😟😟😟😟
* 😠(1a6fe32d by mnmiller1)
Fix issue introduced by 4123eddff
lastValue may be null at this point, old is not
(7f82a7d6 by octavia.togami)
Tick watchdog on get* calls (#1504)
(232ced85 by mnmiller1)
Fixed undo/redo editsessions not retaining settings
(61a5d7d6 by mnmiller1)
Bump Adapters for neighbouring validations fix
(c7885f2f by mnmiller1)
Few minor tweaks to WNA that don't modify behaviour but bring it more inline with how MC works
(4123eddf by mnmiller1)
Back to SNAPSHOT for continued development
(42eddd2d by mnmiller1)
Create schematics folder on startup
(3bf5d0cd by octavia.togami)
Officially propagate GPL downwards to all files
(f2ce020d by octavia.togami)
Fixed an issue where upwards resolved schematics would break schem list (#1481)
* Fixed an issue where upwards resolved schematics would break schem list
* Missed diff
* PR changes
* Further fixes
* Improve sorting logic
* Pass in comparator rather than using sort type
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (0a9fa869 by mnmiller1)
[Fabric] Update to 1.16.2
(e0718dd3 by octavia.togami)
[Fabric] Preliminary update to 1.16.2-rc2
(484a5dbd by octavia.togami)
Fixed snapshot database under symlinks on windows
(55de7cb7 by mnmiller1)
Add tracing feature to EditSessions (#1301)
* Add tracing feature to EditSessions
This helps track down what plugin (or more specifically, extent) is
blocking actions from happening.
* Set a trace hook instead of a one-off command
* Correct the logic for determining tracing active
* Fix extra newline in AbstractPlayerActor
* Fix checkstyle
* Improve messaging of trace mode (ffaf8e00 by octavia.togami)
Back to SNAPSHOT for continued development
(a4d45b05 by mnmiller1)
Fixed the Forge platform not exposing events, and added a comment about PoI
(94ce464f by mnmiller1)
Add an update side effect. Only for Bukkit for now
(05014b1f by mnmiller1)
Added a snow brush (#1462)
* Added a snow brush
* Re-add the Apply class for deprecation reasons
* Use the context extent rather than an EditSession
* Only freeze water source blocks.
* Fixed the bind message for snow stacker
* Fixed PR issues (5e5f1c21 by mnmiller1)
Ignore CRLF/Checkstyle commits in blame
Must be manually opted-in to, see
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revltrevgt
for details
(1b91b8f5 by octavia.togami)
Fail if any mask fails to parse (#1465)
(f2e5c52f by octavia.togami)
Merge pull request #1460 from EngineHub/bugfix/default-wand-on-session-create
Do not check permissions for initial wand bind (b0d5100e by octavia.togami)
Determine if a player has an item bound for unbind
(1083a36d by octavia.togami)
Remove duplicate dependency entry
(cbe788c9 by octavia.togami)
[Forge] Update dependencies, mark as GPL
(4c050f25 by octavia.togami)
Do not check permissions for initial wand bind
Also: report both errors if needed for sel/nav wands.
(63ab406c by octavia.togami)
Bump adapters for regen changes
(3c402e4a by mnmiller1)
Re-shuffle regen methods to fix deprecation order
Everything delegates to the original EditSession signature. The new
RegenOptions + EditSession variant is removed, as it was never
officially published. A delegation check was installed in the
NAFC-marked method.
(288ed7fa by octavia.togami)
Remove EditSession regenerate method from Bukkit Adapters
Since adapters are not API, the EditSession regeneration methods should not be exposed here.
(c3f533e8 by dordsor21)
Allow regeneration to accept Extents instead of EditSessions.
Allows for custom Extents to be parsed to regen, and for clipboard regeneration, etc whilst still allowing EditSessions
(c4abc9a2 by dordsor21)
Bump text-adapters version.
Should hopefully fix various issues people were having on CraftBukkit.
(d4c06c73 by wizjany)
Drop requirement for root tag to be named
Sponge does not name the root tag, this allows us to almost load their
schematics (except for a bug
https://github.com/SpongePowered/SpongeCommon/pull/3085)
(36ef7877 by octavia.togami)
Regenerate list classes from MCUtils
(da4d70fa by octavia.togami)
Change //stack and //move to take a full offset
(5f9f1059 by octavia.togami)
Add a stacker mode to the snow command (#1429)
* Convert simulateSnow to an Operation and add stacking support
* Fixed height calculations
* Use a LayerVisitor for SnowSimulator
* Fixed few issues
* Update the 1.16 block mappings, and use isSolid rather than !isTranslucent due to translucent no longer existing. A better solution should come later.
* I feel this is a better temporary check (043faaf5 by mnmiller1)
Drop unused reference card PNG
(c1fb43cc by octavia.togami)
Enable parallel builds by default
(b33d96bb by octavia.togami)
Fix bug with short-circuiting on ||
(9c81135b by octavia.togami)
Restore overworld check for bukkit
(213239ee by octavia.togami)
Use BiomeQuirkExtent instead of spotty handling
(1b568ded by octavia.togami)
Fix 3D biome support testing
3D biomes always work on dedicated servers, at least as far as the
client knows. This is so terrible though. Mojang why.
(5803cb10 by octavia.togami)
Remove all `compile` deps, use api/impl as appropriate
(7134ff44 by octavia.togami)
Remove Fabric LCA handler, pretty broken
(a0b4f933 by octavia.togami)
Handle schematics with an invalid DataVersion
(38b9ac9b by octavia.togami)
Validate number of format placeholders as well
(69b5cf54 by octavia.togami)
Add incremental translation checker
Only validates basic formatting, not number of arguments.
(3a368628 by octavia.togami)
Prevent our JavaCompile edits for Forge
(957af496 by octavia.togami)
Fix leaking piston codes via update
Fixes #1436
(6845e86f by octavia.togami)
Add fungi and chorus plant tree types.
Closes #1411.
(9d9aaac1 by wizjany)
Error if loaded in even OLDER versions of Bukkit
Take that, 1.8 servers.
(22acd2b4 by octavia.togami)
Error + disable if loaded in old MC versions on Bukkit
(f023b46f by octavia.togami)
Update adapter jar for file deletion fix.
Fixes #1427.
(373f8695 by wizjany)
Remove ShutdownHook / onExit handling
This didn't work right, and if we fail to cleanup, it's unlikely it
would succeed at exit.
(93e386a5 by octavia.togami)
Add deprecation to CLI sender
(d111d868 by octavia.togami)
Cleanup asserts, condition in extending selector
(50a744f4 by octavia.togami)
Add TODO for JSON in BaseBlock back
(21adeae4 by octavia.togami)
Cleanup some javac warnings
(81f6e3e7 by octavia.togami)
Enforce UTF-8 source reading, lint in javac
(4961c343 by octavia.togami)
Fix suppresion regex on Windows
(79705cda by octavia.togami)
Create a brand new checkstyle config
And also apply it!
(eb52afa2 by octavia.togami)
CRLF -> LF
Except `.\gradlew.bat`, because Windows is special.
(59ccc0a5 by octavia.togami)
Add final to many fields
(781abd51 by octavia.togami)
Add license to ShutdownHook
(c50170a3 by octavia.togami)
Add force-deletion utilities for cleaning up dirs
Windows sucks.
(176418ba by octavia.togami)
Back to SNAPSHOT for continued development
(624e416e by mnmiller1)
[Fabric] Fix left click air firing on wrong hand
(f4c44061 by octavia.togami)
Localise WorldEditException and error handling (#1393)
* Localise the ExceptionConverter
* Further work on localising exceptions
* Everything but input parsing is now localised
* Finish making errors localisable
* Fixed a few notes from review
* Fixed another spot
* More changes
* Specialise parser errors (9b4bfbed by mnmiller1)
Regeneration Options (#1415)
* Add RegenOptions to the API
* Integerate regen options into //regen
* Rename isRegenBiomes to shouldRegenBiomes
* Go through the EditSession for setting biomes
* Respect 3D biome support in regen
* Add RegenOptions implementation for 1.16 Bukkit adapter.
Co-authored-by: wizjany <wizjany@gmail.com> (bf6cd1ea by octavia.togami)
Cleanup/fix ascend logic
Fixes #1419
(cc46de95 by octavia.togami)
Replace BlockStates reading with new 1.16 logic (#1413)
* Replace BlockStates reading with new 1.16 logic
* Account for running on older platforms
Splits out the new reading to AnvilChunk16, uses data version to detect
the appropriate version.
* Move data versions to Constants
Also fixes some logic hiccups that become obvious with the new names.
* Fix LegacyMapper DFU handling
* Fix factor indexing (8c171f09 by octavia.togami)
Fix buildscript issue on certain locales.
(e64cfe5d by wizjany)
Build script cleanup/updates.
(57b73b9e by wizjany)
Fix i18n key for superpick max range
(41162e42 by octavia.togami)
Disable codecov checks, as we don't fully test yet
(ba64e764 by octavia.togami)
Replace setPosition with trySetPosition (#1403)
Allows cancellation information to be fed back into the ascend/descend
algorithms. (71e104bc by octavia.togami)
Fix or suppress deprecation warnings in most code (#1404)
Didn't touch commands or some of Sponge (8aa034c7 by octavia.togami)
Add new netherite pickaxe.
Fixes #1407.
(042d0f1c by wizjany)
Use interface for ServerWorldProps/Info
Fixes #1397
(732c11cb by octavia.togami)
Update build dependencies
(87de87ed by octavia.togami)
Update Loom for runClient fix
(4f43ced2 by octavia.togami)
Propagate 3D biome support up extent stack
Fixes #1399
Also improved Fabric gradle b/c why not
(a6236b67 by octavia.togami)
Fix click command for perf box
(7ee60060 by octavia.togami)
Update links in README
(e816d8de by octavia.togami)
Default VALIDATION to off
People have issues copy/pasting with this on, so I think for now it's
better to leave it off. If someone needs the special behavior for
setting panes or fences, they can turn it back on.
We do need to investigate the reason why it's not working, and
potentially save validation for post-edit, rather than prior to
placement.
(bf4dc8e2 by octavia.togami)
Bump data to 1.16.1 with MCUtils
(efec53b1 by mnmiller1)
Add 1.16 UUID tag to NO_COPY_ENTITY_NBT_FIELDS
(984e9448 by mnmiller1)
Return correct world folders on Bukkit, used in /delchunks.
Fixes #1365.
(410d4c5e by wizjany)
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! (6dbcbd4a by octavia.togami)
Added an initial 7.2.0 changelog
(7ce03549 by mnmiller1)
fix: require extent for mask parsing (#1373)
(1ced57c3 by mnmiller1)
Mojang AB and the Column Biome Fuzzer (#1376)
* Allow API detection of the biome fuzzer in use
This allows us to warn, fix, or optimize biome edits to the overworld.
* Drop edits to Y = 0 for biomes in overworld
* Re-work ArbitraryBiomeShape to simplify logic
Also fixes not being able to use THE_VOID with it (6513513b by octavia.togami)
Try to fix issue with extra server tasks
I don't think there's a cleaner way to pop these off.
(3db43c88 by octavia.togami)
Reduce number of tests executed
It's honestly too many for the CI to handle right now, and this should
provide sufficient coverage for now.
(df393725 by octavia.togami)
Update Loom for ease-of-use
Includes a patch that allows `--refresh-dependencies` to reset the Loom
cache, rather than needing to delete everything with a hammer.
(e93f20b6 by octavia.togami)
Fabric 1.16 (#1362)
* [Fabric] Test port to 1.16-pre5
* [Fabric] Fix/improve regen implementation
* Cleanup properly in regen
* Cleanup unused interfaces/methods from porting
* Add licenses to new classes
* Allow packages from refactor in checkstyle
* Remove unused imports from WorldGenListener
* Remap the access widener in the dist jar
* [Fabric] Update to 1.16-pre6 (recursion limit)
Requires an update in the Bukkit Adapters later.
* [Fabric] Update to 1.16
May or may not build, depending on how cached everything is. (64123836 by octavia.togami)
Set ES6 compat flag for Rhino
(849a515d by octavia.togami)
Add 3D biomes support (Adds #1358) (#1361)
* Initial work on 3D biomes. Not implemented for Bukkit, and history is unfinished
* Further implement 3D Biomes. It's now usable on Forge/Fabric
* Fix a few cases of apply. Gotta fix the deprecated methods at some point
* Add Bukkit support
* Add clipboard support. Schematics are still not great, but the Sponge schem format doesn't support this yet.
* Fix the last of the issues
* Fixed up review comments
* Fixed review notes
* Simplify
* max is inclusive
* Standardize non-abstract compatibility handling
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (f5e36ed8 by mnmiller1)
Count wandering traders as NPCs for /butcher. (#1359)
* Count wandering traders as NPCs for /butcher.
Fixes #1347.
* Change variable case. (57d62b0b by wizjany)
Register /tool with sub-command permission gen
(2f414034 by octavia.togami)
Bump text versions for 1.16 and action bar fixes
(5132c5e8 by mnmiller1)
Use a long to refer to the volume of a region to prevent overflow (#1350)
* Use a long to refer to the volume of a region, and rename the method to getVolume
* Fixed issues noted in review
* Forgot to floor
* Fixed review notes
* Can use a long here rather than BigDecimal
* Improve javadocs
* style (328030fd by mnmiller1)
Fix vector gen, always enable BlockMap tests
The BlockMap tests got much faster, so there's no need to hide them
behind a flag.
(1e2496af by octavia.togami)
Add import to checkstyle
(68be2b34 by octavia.togami)
Add licenses for test files
(300aad35 by octavia.togami)
Don't mark Forge WorldEdit as required on client
Fixes #1343.
(e755acdd by octavia.togami)
Test more of the math/collections, fix VectorPList
Fixes #1291
(e0346ff5 by octavia.togami)
Implement remove on set/iter views of BlockMap
Fixes #1354.
(637da62e by octavia.togami)
Add fabric to the compiling.md (#1353)
(ec230039 by i509vcb)
Add transform for vertical flip of stair half. (#1341)
(4ac6f1ed by wizjany)
Don't fail when enabling standard mode for an extent without a world.
(68f2f733 by mnmiller1)
Fix Biome math on Forge and Fabric
(6b918e67 by octavia.togami)
Handle non-country locales better. Fixes #1345
(a2c541bd by mnmiller1)
feat(i18n): use a translation loader to allow CB/WG to use WorldEdit's TranslationManager (#1327)
* feat(i18n): use a translation loader to allow CB/WG to use WorldEdit's TranslationManager
* Replace the old ResourceLoader with the new one
* Make ResourceLoader per-platform
* Update worldedit-core/src/main/java/com/sk89q/worldedit/util/io/WorldEditResourceLoader.java
* Improve the impl to allow a default
* Update based on review suggestions
* Local resource should be pathName too
* Delegate to getRootResource, and prevent pathName from starting with /
* HTML
* Format javadoc a little better
Co-authored-by: Octavia Togami <octavia.togami@gmail.com> (267fe1ff by mnmiller1)
Fixed typo in default disallowed blocks on Bukkit
(7a8c5129 by mnmiller1)
Change HTTP to HTTPS in License (#1335)
Change HTTP to HTTPS in LICENSE. (2363440f by 60381935+luracasmus)
Fix RandomPatternParser suggestions.
"x%" was being dropped.
Closes #1302.
(da3fd6c9 by wizjany)
Reinstate localized name lookup on BlockType.
(e0814cfe by wizjany)
Update to use the new runtime rhino JAR
(ba91dff1 by octavia.togami)
Correct typo in region selector docs
(9a11c578 by octavia.togami)
Add compatibility handlers for beds and banners for MCEdit Schematics (#561)
* Add compatibility handlers for beds and banners
* IntTag#getValue does not return null so do not check that (53ac21aa by emcchickeneer)
Allow craftscripts to exit early + cleanly (#1308)
* Allow craftscripts to exit early + cleanly
* Add de-facto standard javadoc tags (a02458b7 by octavia.togami)
Move expression source string to the expression class.
(df3b3736 by wizjany)
Add makeShape Expression overload for consistency.
(fa0618d9 by wizjany)
Pre-compile the expression used in the deform brush.
This lets the command fail early, rather than throwing wrapped runtime
exceptions on every brush usage.
(cd9a45bd by wizjany)
Delay command block active update if needed (#1285)
* Delay command block active update if needed
If we are checking if a command block session is active, and we are not
on the main thread, schedule a task instead to update the active status
eventually, rather than waiting on the main thread.
Fixes #1284.
* What's that? Non-static state, you say?
Just saw we have a field for the plugin here. Might as well use it.
* Check if chunk is loaded for sender before type (3fdb10ad by octavia.togami)
Make the null-result case visible to the user
Fixes #1303.
(83438644 by octavia.togami)
Don't suggest default namespaces.
This just ends adding a lot of `minecraft:` to otherwise short commands.
(d2601851 by wizjany)
Limit direction names (#1293)
* Limit direction names
This reduces interference with block arguments, since none of these are
block names now.
* Drop other dir comments (8c83fd62 by octavia.togami)
Update Piston to fix bugs
Closes #1292 via Piston fixes.
(dc56b602 by octavia.togami)
Fix fabric genSources task
(068ac9b5 by octavia.togami)
Add default-pending label to issue templates
(d3a37995 by octavia.togami)
Optimize poly region vertex add, fix Edge
(56d0c6e7 by octavia.togami)
Properly close all files when dealing with archives (#1274)
* Properly close all files when dealing with archives
* Move file utils to SafeFiles class
* Licenses (a600266d by octavia.togami)
De-dup Bukkit argument rebuilding code
(5ab71109 by octavia.togami)
Fix onAsyncTabComplete handling of invalid values
This fixes #1281, by just ignoring weird tab completion requests.
(7d4563a3 by octavia.togami)
Re-add block/item localized name methods to registries.
WorldGuard uses these still.
(439d6c81 by wizjany)
Use custom radix sort for ordering blocks (#1277)
* Use custom radix sort for ordering blocks
* Licenses :P
* Fix ordering, add test for it
* Grant Gradle more memory (thx Fabric)
* Increase (?) / Specify memory for core tests
* Many attempts at fixing OOM (bb013aa8 by octavia.togami)
Add height part to expand vert command
Fixes #1275
(404feef5 by octavia.togami)
Fix misalignment of libs dependencies
(f51fb1cd by octavia.togami)
Disable snapshot-fs test for now.
(4bbdc059 by wizjany)
Add version section to bug report template. (f0f9efff by wizjany)
Make //size text color consistent.
(eb8fcdcd by wizjany)
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 (cfd26253 by octavia.togami)
Validate placed blocks / WNA (#1263)
* Optionally validate placed blocks
This allows re-connection of fences, chests, panes, etc.; removal of
blocks in invalid states; and more!
The Connections side-effect already did this for neighbors, so this is
now renamed to Validation for accuracy, and left on by default.
This also fixes some inconsistencies between the Fabric & Forge
markAndNotifyBlock function.
* Add forge comment to fabric world
* Add WorldNativeAccess common logic
* Add Fabric WNA
* Add Bukkit WNA for adapters
* Fix imports for new Fabric mappings
* Pass raw world ref to Bukkit adapters
* Remove client-only block update call
We always assume a server world.
* Allow WNA impls to inspect side-effects
* Update adapters for WNA
* Licenses
* Fix adapter JAR
* Generify EVENTS side effect
* Update adapters for EVENTS change (2f4c44f8 by octavia.togami)
Merge pull request #521 from EngineHub/feature/cubic-chunks-7
Cubic Chunks compatibility (version 7) (17880b81 by octavia.togami)
Only add adapters to dist jar
(20d630ce by octavia.togami)
[Forge] Require MC between current + next major version
(e6924620 by octavia.togami)
Nest snapshot test dbs in a root temp folder
Allows us to clean it all up easily.
Closes #558.
(e6d5950b by octavia.togami)
Allow expand to be used by console. (#1264)
* Allow expand to be used by console.
Also fix direction converter requiring a player.
* Revert exception. (b4d2db3d by wizjany)