Skip to content

Commit 1070aeb

Browse files
committed
pr comment
1 parent 1e39948 commit 1070aeb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/block/PylonBlock.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ open class PylonBlock protected constructor(val block: Block) {
8585
@JvmStatic
8686
fun register(key: NamespacedKey, material: Material, blockClass: Class<out PylonBlock>) {
8787
val schema = PylonBlockSchema(key, material, blockClass)
88-
if (!wailaWarningsSupressed.contains(key)) {
88+
if (key !in wailaWarningsSupressed) {
8989
checkWaila(schema)
9090
}
9191
PylonRegistry.BLOCKS.register(schema)

pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/item/PylonItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ open class PylonItem(val stack: ItemStack) : Keyed {
7575
}
7676

7777
private fun register(schema: PylonItemSchema) {
78-
if (!nameAndLoreWarningsSupressed.contains(schema.key)) {
78+
if (schema.key !in nameAndLoreWarningsSupressed) {
7979
checkNameAndLore(schema)
8080
}
8181
PylonRegistry.ITEMS.register(schema)

0 commit comments

Comments
 (0)