diff --git a/common/src/main/kotlin/quaedam/projection/swarm/ai/ExchangeItem.kt b/common/src/main/kotlin/quaedam/projection/swarm/ai/ExchangeItem.kt index c184314..b2ee939 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ai/ExchangeItem.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ai/ExchangeItem.kt @@ -43,7 +43,7 @@ class ExchangeItem : Behavior( if (chest is ChestBlockEntity) { ChestBlockEntity.playSound(level, target!!, level.getBlockState(target!!), SoundEvents.CHEST_OPEN) } - if (chest.isEmpty) { + if (chest.isEmpty && level.random.nextBoolean()) { closeAt = l + 7 } else { closeAt = l + 10 + level.random.nextInt(100)