Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -889,15 +889,21 @@ public void adjust(Mechanism mechanism) {
// <--[mechanism]
// @object ChunkTag
// @name regenerate
// @deprecated This functionality was removed from Spigot and Paper as of 1.21.
// @input None
// @description
// Deprecated on MC 1.21+.
// Causes the chunk to be entirely deleted and reformed from the world's seed.
// At time of writing this method only works as expected on Paper, and will error on Spigot.
// @example
// - adjust <player.location.chunk> regenerate
// -->
if (mechanism.matches("regenerate")) {
getBukkitWorld().regenerateChunk(getX(), getZ());
if (NMSHandler.getVersion().isAtMost(NMSVersion.v1_20)) {
getBukkitWorld().regenerateChunk(getX(), getZ());
}
else {
mechanism.echoError("The 'ChunkTag.regenerate' mechanism has been deprecated upstream and is no longer supported.");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should make this a proper deprecation warning, probably in the PAST deprecations section

}
}

// <--[mechanism]
Expand Down