PlotSquared uses deprecated class MaterialData #3883
Labels
Approved
A project maintainer or developer has reproduced this issue
Good first issue
Simple issue which would be a good first PR for newbies interested in contributing to the project
Server Implementation
Spigot
Server Version
1.19.2
Describe the bug
BlockEventListener line 940 calls BlockState#getData, which returns MaterialData. This ends up loading the Legacy Material Support even though the server is running 1.19.2 and using 1.19.2 blocks.
PlotSquared/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java
Line 940 in 3a8fae4
To Reproduce
Note that the world doesn't even need to be a plot world! Bad PlotSquared, bad!
Expected behaviour
PlotSquared doesn't load the Legacy Material Support on a 1.19.2 server using 1.19.2 blocks.
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
Just look at your code.
PlotSquared Version
6.10.4
Checklist
Anything else?
Problem also occurs using Paper.
The text was updated successfully, but these errors were encountered: