Skip to content

Commit da3ab3b

Browse files
committed
lol
1 parent 05a543a commit da3ab3b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

rebar/src/main/kotlin/io/github/pylonmc/rebar/block/BlockStorage.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ object BlockStorage : Listener {
627627
* Turns the block into a [PhantomBlock] which represents a block which has failed for some reason
628628
*/
629629
@JvmSynthetic
630-
internal fun makePhantom(block: RebarBlock) = lockBlockWrite {
630+
internal fun makePhantom(block: RebarBlock): Unit = lockBlockWrite {
631631
BlockCullingEngine.remove(block)
632632
RebarBlockSchema.schemaCache[block.block.position] = PhantomBlock.schema
633633
val pdc = RebarBlock.serialize(block, block.block.chunk.persistentDataContainer.adapterContext) ?: return
@@ -638,7 +638,6 @@ object BlockStorage : Listener {
638638
blocksByKey.computeIfAbsent(phantomBlock.key) { mutableListOf() }.add(phantomBlock)
639639
blocksByChunk[block.block.chunk.position]!!.remove(block)
640640
blocksByChunk[phantomBlock.block.chunk.position]!!.add(phantomBlock)
641-
Unit
642641
}
643642

644643
@JvmSynthetic

rebar/src/main/kotlin/io/github/pylonmc/rebar/entity/packet/BlockTextureEntity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ open class BlockTextureEntity(
5757
}
5858

5959
open fun refreshViewer(viewer: UUID, distanceSquared: Double) {
60-
val scale = entityMeta.metadata.getIndex(SCALE_INDEX.toByte(), null as Vector3f?) ?: DEFAULT_SCALE
61-
val translation = entityMeta.metadata.getIndex(TRANSLATION_INDEX.toByte(), null as Vector3f?) ?: DEFAULT_TRANSLATION
60+
val scale = entityMeta.getIndex(SCALE_INDEX.toByte(), null as Vector3f?) ?: DEFAULT_SCALE
61+
val translation = entityMeta.getIndex(TRANSLATION_INDEX.toByte(), null as Vector3f?) ?: DEFAULT_TRANSLATION
6262
val metadata = arrayListOf(
6363
EntityData(TRANSLATION_INDEX, EntityDataTypes.VECTOR3F, translation),
6464
EntityData(SCALE_INDEX, EntityDataTypes.VECTOR3F, scale)

0 commit comments

Comments
 (0)