8000 Use getType in trackers rather than SportPaper's getMaterial by calcastor · Pull Request #1037 · PGMDev/PGM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use getType in trackers rather than SportPaper's getMaterial #1037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

calcastor
Copy link
Contributor

While testing a different change to ensure functionality on Spigot/Paper, I discovered that CactiTracker and FallingBlockTracker were using getMaterial from SportPaper as opposed to getType; despite deprecation we use this instead with DispenserTracker and TNTTracker since it does the same thing. As a result, switch usage in CactiTracker and FallingBlockTracker, and suppress relevant deprecation warnings.

Also suppress deprecation

Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com>
@calcastor calcastor requested a review from Electroid as a code owner July 27, 2022 04:50
@Electroid Electroid merged commit c42e86c into PGMDev:dev Jul 28, 2022
@calcastor calcastor deleted the bukkit-gettype branch July 28, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0