Skip to content

Commit 0f6e714

Browse files
committed
bruh
1 parent 454721d commit 0f6e714

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarSimpleMultiblock.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import io.github.pylonmc.rebar.block.BlockStorage
66
import io.github.pylonmc.rebar.block.MultiblockCache
77
import io.github.pylonmc.rebar.block.RebarBlock
88
import io.github.pylonmc.rebar.block.RebarBlockSchema
9-
import io.github.pylonmc.rebar.block.context.BlockCreateContext
109
import io.github.pylonmc.rebar.datatypes.RebarSerializers
1110
import io.github.pylonmc.rebar.entity.EntityStorage
1211
import io.github.pylonmc.rebar.entity.RebarEntity
@@ -19,7 +18,7 @@ import io.github.pylonmc.rebar.event.RebarBlockSerializeEvent
1918
import io.github.pylonmc.rebar.event.RebarBlockUnloadEvent
2019
import io.github.pylonmc.rebar.item.builder.ItemStackBuilder
2120
import io.github.pylonmc.rebar.registry.RebarRegistry
22-
import io.github.pylonmc.rebar.util.getrelative
21+
import io.github.pylonmc.rebar.util.getRelative
2322
import io.github.pylonmc.rebar.util.position.ChunkPosition
2423
import io.github.pylonmc.rebar.util.position.position
2524
import io.github.pylonmc.rebar.util.rebarKey
@@ -510,9 +509,9 @@ interface RebarSimpleMultiblock : RebarMultiblock, RebarEntityHolderBlock, Rebar
510509
fun getMultiblockBlock(position: Vector3i): Block {
511510
val direction = getMultiblockDirection()
512511
return if (direction != null) {
513-
block.getrelative(rotateVectorToFace(position, direction))
512+
block.getRelative(rotateVectorToFace(position, direction))
514513
} else {
515-
block.getrelative(position)
514+
block.getRelative(position)
516515
}
517516
}
518517

rebar/src/main/kotlin/io/github/pylonmc/rebar/util/RebarUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,4 +613,4 @@ fun getBlockBreakTicks(tool: ItemStack, block: Block)
613613
*/
614614
fun Entity.scheduleRemove() = Bukkit.getScheduler().runTask(Rebar, this::remove)
615615

616-
fun Block.getrelative(vector: Vector3i) = this.getRelative(vector.x, vector.y, vector.z)
616+
fun Block.getRelative(vector: Vector3i) = this.getRelative(vector.x, vector.y, vector.z)

0 commit comments

Comments
 (0)