Skip to content

Commit

Permalink
Oops, fix small big mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaargolo committed Jul 16, 2023
1 parent de4bb51 commit 6a52137
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a52137

Please sign in to comment.