how did i add forge version of cas and not neoforge

This commit is contained in:
DBotThePony 2024-08-23 20:15:33 +07:00
parent b38d34860c
commit 8bc326f082
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -167,8 +167,8 @@ class CosmeticToggleButton<out S : Screen>(
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)))