Skip to content

Commit 761828e

Browse files
committed
Update Imbue Mindsplice Table cost
1 parent 20d3b8b commit 761828e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Common/src/main/kotlin/gay/object/hexdebug/casting/actions/splicing/OpWriteEnlightenedHex.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import at.petrak.hexcasting.api.casting.mishaps.MishapBadBlock
1111
import at.petrak.hexcasting.api.casting.mishaps.MishapOthersName
1212
import at.petrak.hexcasting.api.misc.MediaConstants
1313
import gay.`object`.hexdebug.blocks.splicing.SplicingTableBlockEntity
14-
import net.minecraft.server.level.ServerPlayer
1514
import net.minecraft.world.phys.Vec3
1615

1716
object OpWriteEnlightenedHex : SpellAction {
@@ -30,14 +29,13 @@ object OpWriteEnlightenedHex : SpellAction {
3029
throw MishapBadBlock.of(pos, "splicing_table.enlightened")
3130
}
3231

33-
val trueName = MishapOthersName.getTrueNameFromArgs(hex, env.castingEntity as? ServerPlayer)
34-
if (trueName != null) {
35-
throw MishapOthersName(trueName)
32+
MishapOthersName.getTrueNameFromArgs(hex, null)?.let {
33+
throw MishapOthersName(it)
3634
}
3735

3836
return SpellAction.Result(
3937
Spell(table, hex),
40-
5 * MediaConstants.CRYSTAL_UNIT,
38+
10 * MediaConstants.CRYSTAL_UNIT,
4139
listOf(ParticleSpray(pos.center, Vec3(1.0, 0.0, 0.0), 0.25, 3.14, 40))
4240
)
4341
}

0 commit comments

Comments
 (0)