mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
fix use of nms for test
This commit is contained in:
parent
bf7a158c95
commit
ea4315f494
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ interface ExternGuiTester {
|
|||
fun getContainerClass(inventory: InventoryView): Class<Any>?
|
||||
|
||||
fun testIfGui(inventory: InventoryView): Boolean {
|
||||
// this mean we are on test
|
||||
if(inventory.javaClass.name.endsWith("AnvilViewMock")) return false
|
||||
|
||||
val clazz = getContainerClass(inventory) ?: return false
|
||||
|
||||
val clazzName = clazz.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue