Skip to content

Commit

Permalink
Fix pickaxes not being an actual effective tool for stone ladders
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Jul 5, 2021
1 parent 96e2381 commit 524e9cf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 26 deletions.
5 changes: 4 additions & 1 deletion common/src/main/kotlin/juuxel/adorn/block/AdornBlocks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ object AdornBlocks {
)
}
val STONE_LADDER: Block by registerBlock("stone_ladder") {
StoneLadderBlock(PlatformBridges.blocks.createStoneLadderSettings())
StoneLadderBlock(
AbstractBlock.Settings.copy(Blocks.STONE)
.nonOpaque()
)
}
// @formatter:on

Expand Down
8 changes: 0 additions & 8 deletions common/src/main/kotlin/juuxel/adorn/platform/BlockBridge.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ fun PlatformBridges.Companion.get(): PlatformBridges =
throw AssertionError("Untransformed ExpectPlatform")

interface PlatformBridges {
val blocks: BlockBridge
val blockEntities: BlockEntityDescriptors
val config: CommonConfig
val entities: EntityBridge
Expand All @@ -19,7 +18,6 @@ interface PlatformBridges {
val tags: TagBridge

companion object {
inline val blocks get() = get().blocks
inline val blockEntities get() = get().blockEntities
inline val config get() = get().config
inline val entities get() = get().entities
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"adorn:stone_ladder"
]
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import net.minecraft.util.registry.Registry

fun PlatformBridges.Companion.get(): PlatformBridges =
object : PlatformBridges {
override val blocks = BlockBridgeImpl
override val blockEntities = BlockEntityDescriptorsImpl
override val config = ConfigManager.CONFIG
override val entities = EntityBridgeImpl
Expand Down

0 comments on commit 524e9cf

Please sign in to comment.