Skip to content

Remove deprecated block data methods#8240

Merged
sovdeeth merged 1 commit intoSkriptLang:dev/patchfrom
AfkUserMC:craftlegacy-fix
Oct 16, 2025
Merged

Remove deprecated block data methods#8240
sovdeeth merged 1 commit intoSkriptLang:dev/patchfrom
AfkUserMC:craftlegacy-fix

Conversation

@AfkUserMC
Copy link
Copy Markdown
Contributor

Problem

Buckets are my worst nightmare. When emptying or filling a bucket, Skript will attempt to set block data on it via a method that has been deprecated since 1.6.2. ONE POINT SIX. that's like. at least fifty versions behind what is currently the minimum version.
Since this method is so old, it's no longer natively supported by CraftBukkit, and instead initializes CraftLegacy. Since this happens the first time (in a session) the bucket is filled or emptied, CraftLegacy is not initialized on startup, but rather when this happens, and it causes anywhere from 5 to 30 seconds of lag.

tl;dr legacy bucket methods are causing lag during runtime

Solution

just nuke it lmao

Testing Completed

I have NO idea what script was causing this, but when I added the patched version to the server it was fixed. If this needs further testing let me know and I'll do some more extensive testing.


Completes: #6968, #7560,
Related: #6641

Removed two lines related to block data changes that have been deprecated since 1.6.2, which initiate CraftLegacy WHILE THE SERVER IS RUNNING when a bucket is emptied or filled.

Obviously, we don't support 1.6.2, so there's no compatibility issues to worry about when removing this. Hopefully.
@AfkUserMC AfkUserMC requested a review from a team as a code owner October 16, 2025 19:47
@AfkUserMC AfkUserMC requested review from Pesekjak and TheMug06 and removed request for a team October 16, 2025 19:47
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Oct 16, 2025
@sovdeeth sovdeeth changed the base branch from master to dev/patch October 16, 2025 19:52
@TheMug06
Copy link
Copy Markdown
Contributor

Seems fine to me, note for next time - Target dev/patch or dev/feature depending on the changes, not master

@AfkUserMC
Copy link
Copy Markdown
Contributor Author

Seems fine to me, note for next time - Target dev/patch or dev/feature depending on the changes, not master

alright, noted

@sovdeeth sovdeeth changed the base branch from dev/patch to master October 16, 2025 19:54
@sovdeeth sovdeeth changed the base branch from master to dev/patch October 16, 2025 19:54
@sovdeeth sovdeeth requested review from a team and Pesekjak and removed request for a team, APickledWalrus, Efnilite, Pesekjak, TheMug06, UnderscoreTud and abandonedaccount6235 October 16, 2025 19:55
@sovdeeth sovdeeth moved this to In Review in 2.13 Releases Oct 16, 2025
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.13 Releases Oct 16, 2025
@skriptlang-automation skriptlang-automation bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Oct 16, 2025
@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Oct 16, 2025
@sovdeeth sovdeeth merged commit e047089 into SkriptLang:dev/patch Oct 16, 2025
5 checks passed
@skriptlang-automation skriptlang-automation bot added the completed The issue has been fully resolved and the change will be in the next Skript update. label Oct 16, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.13 Releases Oct 16, 2025
@skriptlang-automation skriptlang-automation bot removed the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Oct 16, 2025
@APickledWalrus APickledWalrus moved this from Done - Awaiting Release to Done - Released in 2.13 Releases Nov 2, 2025
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

No open projects
Status: Done - Released

Development

Successfully merging this pull request may close these issues.

lagging server Legacy Material Support Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!

4 participants