@@ -3,9 +3,7 @@ package com.mineinabyss.blocky.systems
33import com.mineinabyss.blocky.blocky
44import com.mineinabyss.blocky.components.features.blocks.BlockyDirectional
55import com.mineinabyss.blocky.helpers.blockyNoteBlock
6- import com.mineinabyss.blocky.helpers.blockyTripWire
76import com.mineinabyss.geary.modules.Geary
8- import com.mineinabyss.geary.papermc.gearyPaper
97import com.mineinabyss.geary.papermc.tracking.blocks.components.SetBlock
108import com.mineinabyss.geary.prefabs.PrefabKey
119import com.mineinabyss.idofront.textcomponents.serialize
@@ -38,7 +36,7 @@ object AxiomCompatibility {
3836 fun registerCustomBlocks () {
3937 AxiomCustomBlocksAPI .getAPI().unregisterAll(blocky.plugin)
4038 blocky.blockQuery.forEach { (prefab, block, directional, itemstack) ->
41- if (block.blockType == SetBlock .BlockType .NOTEBLOCK && directional != null ) return @forEach
39+ if (block.blockType != SetBlock .BlockType .NOTEBLOCK || directional != null ) return @forEach
4240
4341 val key = Key .key(prefab.full)
4442 val translationKey = itemstack?.getData(DataComponentTypes .ITEM_NAME )?.serialize() ? : prefab.full
@@ -56,17 +54,17 @@ object AxiomCompatibility {
5654
5755 val key = Key .key(prefab.full)
5856 val translationKey = itemstack?.getData(DataComponentTypes .ITEM_NAME )?.serialize() ? : prefab.full
59- val directionalBlocks = AxiomCompatibility . DirectionalBlocks (directional)
57+ val directionalBlocks = DirectionalBlocks (directional)
6058 val builder = when (directionalBlocks.type) {
61- AxiomCompatibility . DirectionalType .AXIS -> {
59+ DirectionalType .AXIS -> {
6260 val (x, y, z) = directionalBlocks.blocks.take(3 ).map { it.blockyNoteBlock() }
6361 AxiomCustomBlocksAPI .getAPI().createAxis(key, translationKey, x, y, z)
6462 }
65- AxiomCompatibility . DirectionalType .HORIZONTAL_FACING -> {
63+ DirectionalType .HORIZONTAL_FACING -> {
6664 val (n,e,s,w) = directionalBlocks.blocks.take(4 ).map { it.blockyNoteBlock() }
6765 AxiomCustomBlocksAPI .getAPI().createHorizontalFacing(key, translationKey, n, e, s, w)
6866 }
69- AxiomCompatibility . DirectionalType .FACING -> {
67+ DirectionalType .FACING -> {
7068 val (n,e,s,w) = directionalBlocks.blocks.take(4 ).map { it.blockyNoteBlock() }
7169 val (u,d) = directionalBlocks.blocks.takeLast(2 ).map { it.blockyNoteBlock() }
7270 AxiomCustomBlocksAPI .getAPI().createFacing(key, translationKey, n,e,s,w,u,d)
0 commit comments