mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
suppress or remove most warnings
This commit is contained in:
parent
6ea8430247
commit
fc4df29033
6 changed files with 30 additions and 14 deletions
|
|
@ -1,5 +1,4 @@
|
|||
@file:Suppress("DEPRECATION", "removal")
|
||||
|
||||
package xyz.alexcrea.cuanvil.dependency.datapack
|
||||
|
||||
import io.papermc.paper.datapack.Datapack
|
||||
|
|
@ -26,7 +25,7 @@ object DataPackTester {
|
|||
} catch(_: NoSuchMethodException) {
|
||||
try {
|
||||
DataPack::class.java.getDeclaredMethod("getKey")
|
||||
} catch(e: NoSuchMethodException) {
|
||||
} catch(_: NoSuchMethodException) {
|
||||
System.err.println("Could not find compatible datapack manager")
|
||||
System.err.println("If you are using a datapack that should be compatible with CustomAnvil. It will not get detected...")
|
||||
return emptyList()
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ object AnvilTitleUtil {
|
|||
|
||||
private val runTaskMap = HashMap<UUID, ScheduledTask>()
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
private fun actualRename(view: AnvilView, name: String, player: HumanEntity, anvilDialog: AnvilRenameDialog) {
|
||||
runTaskMap.remove(player.uniqueId)
|
||||
if (view.title == name) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue