From 6a5213750fd8137cbefa8599bf943f4a266ef532 Mon Sep 17 00:00:00 2001 From: lucaargolo Date: Sun, 16 Jul 2023 18:38:59 -0300 Subject: [PATCH] Oops, fix small big mistake. --- .../io/github/lucaargolo/kibe/items/miscellaneous/Lasso.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/lucaargolo/kibe/items/miscellaneous/Lasso.kt b/src/main/kotlin/io/github/lucaargolo/kibe/items/miscellaneous/Lasso.kt index 2cbd03a..857e708 100644 --- a/src/main/kotlin/io/github/lucaargolo/kibe/items/miscellaneous/Lasso.kt +++ b/src/main/kotlin/io/github/lucaargolo/kibe/items/miscellaneous/Lasso.kt @@ -31,7 +31,7 @@ abstract class Lasso(settings: Settings): Item(settings) { override fun useOnEntity(stack: ItemStack, user: PlayerEntity, entity: LivingEntity, hand: Hand): ActionResult { if (stack.nbt == null || !stack.orCreateNbt.contains("Entity")) { - if (entity is MobEntity && canStoreEntity(entity.type) && MOD_CONFIG.miscellaneousModule.lassoDenyList.contains(Registry.ENTITY_TYPE.getId(entity.type).toString())) { + if (entity is MobEntity && canStoreEntity(entity.type) && !MOD_CONFIG.miscellaneousModule.lassoDenyList.contains(Registry.ENTITY_TYPE.getId(entity.type).toString())) { if(!user.world.isClient) { if (entity.isLeashed) entity.detachLeash(true, true) entity.fallDistance = 0f