From cd9f18ef9436ac3148b22792246a80645ec186c3 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 26 Jan 2022 09:01:18 +0700 Subject: [PATCH] Do not toDouble --- .../dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt index 9cbc6155e..ce8766f11 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt @@ -316,7 +316,7 @@ class BlockEntityMatterBottler(p_155229_: BlockPos, p_155230_: BlockState) : val matter = capability.extractMatterOuter(MATTER_EXCHANGE_RATE.min(matter.missingMatter) * energyExtracted / ENERGY_CONSUMPTION, true) if (!matter.isZero) { - this.energy.extractEnergyInner(ENERGY_CONSUMPTION * (matter / MATTER_EXCHANGE_RATE).toDouble(),false) + this.energy.extractEnergyInner(ENERGY_CONSUMPTION * matter / MATTER_EXCHANGE_RATE,false) capability.extractMatterOuter(matter, false) this.matter.receiveMatterInner(matter, false)