From 8bc326f08253a6cd154b445822901dabfb7db76c Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 23 Aug 2024 20:15:33 +0700 Subject: [PATCH] how did i add forge version of cas and not neoforge --- gradle.properties | 2 +- .../ru/dbotthepony/mc/otm/compat/cos/CosmeticArmorCompat.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 3e22a5e25..b40a5ecb6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,7 +24,7 @@ kommons_version=3.1.0 jei_version=19.0.0.11 jupiter_version=5.9.2 curios_version=9.0.5 -cosmetic_armor_reworked_id=5427314 +cosmetic_armor_reworked_id=5427303 ad_astra_id=4594155 botarium_id=4594094 resourceful_lib_id=4598948 diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/cos/CosmeticArmorCompat.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/cos/CosmeticArmorCompat.kt index 163b34490..69e6afa99 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/cos/CosmeticArmorCompat.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/cos/CosmeticArmorCompat.kt @@ -167,8 +167,8 @@ class CosmeticToggleButton( else -> throw IllegalArgumentException() } - override fun onClick(clickButton: Int) { - if (clickButton == InputConstants.MOUSE_BUTTON_LEFT) { + override fun onClick(mouseButton: Int) { + if (mouseButton == InputConstants.MOUSE_BUTTON_LEFT) { val inv = ModObjects.invMan.getCosArmorInventoryClient(minecraft.player?.uuid ?: throw ConcurrentModificationException()) inv.setSkinArmor(index, !inv.isSkinArmor(index)) ModObjects.network.sendToServer(PacketSetSkinArmor(index, inv.isSkinArmor(index)))