Skip to content

Commit 49ad610

Browse files
committed
fix: correct identifier of end city in configured structure feature registry
Closes #19
1 parent 22129be commit 49ad610

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ loaderVersion=0.13.3
99
fabricVersion=0.50.0+1.18.2
1010
loomVersion=0.11-SNAPSHOT
1111
# Mod Properties
12-
prevVersion=1.18.2-1.4.0
13-
modVersion=1.18.2-1.4.1
12+
prevVersion=1.18.2-1.4.1
13+
modVersion=1.18.2-1.4.2
1414
mavenGroup=io.github.samarium150
1515
archivesBaseName=structures_compass-fabric
1616
# Kotlin

src/main/kotlin/io/github/samarium150/minecraft/mod/structures_compass/util/ItemStackHelper.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ fun ItemStack.search(player: ServerPlayerEntity, structureId: Identifier) {
8585
val world = player.world as ServerWorld
8686
setStructure(structureId)
8787
player.sendMessage(TranslatableText("${prefix}msg_searching"), false)
88-
val registryEntryList = world.registryManager
89-
.get(Registry.CONFIGURED_STRUCTURE_FEATURE_KEY)
90-
.getEntry(RegistryKey.of(Registry.CONFIGURED_STRUCTURE_FEATURE_KEY, structureId))
91-
.map {
88+
val registryEntryList = world.registryManager.get(Registry.CONFIGURED_STRUCTURE_FEATURE_KEY)
89+
.getEntry(
90+
RegistryKey.of(Registry.CONFIGURED_STRUCTURE_FEATURE_KEY,
91+
Identifier(structureId.namespace, structureId.path.replace("endcity", "end_city")))
92+
).map {
9293
RegistryEntryList.of(it)
9394
}.get()
9495
val result = world.chunkManager.chunkGenerator.locateStructure(

0 commit comments

Comments
 (0)