ignore deprecation warning in TexturedButton

This commit is contained in:
James Seibel
2026-03-21 07:32:56 -05:00
parent 1bb957a866
commit 9c1abbac2b
@@ -63,8 +63,10 @@ import net.minecraft.resources.Identifier;
* @version 2023-10-03
*/
#if MC_VER < MC_1_20_2
@SuppressWarnings("deprecation") // we use a few deprecated Mojang functions (as expected when running on old MC versions)
public class TexturedButtonWidget extends ImageButton
#else
@SuppressWarnings("deprecation") // we use a few deprecated Mojang functions (as expected when running on old MC versions)
public class TexturedButtonWidget extends Button
#endif
{