Skip to content

Commit

Permalink
blacklisted chests from tilemapper to correctly apply item quantity/r…
Browse files Browse the repository at this point in the history
…arity in dungeons

changed version
  • Loading branch information
ImplementsLegend committed Jul 1, 2024
1 parent 2f1616d commit 2db0487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod_name=vaultFaster
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.1.0
mod_version=1.1.1
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ object TileMapperBlacklist {
private val spawnerBlock by lazy {
ForgeRegistries.BLOCKS.getValue(ResourceLocation.tryParse("ispawner:spawner"))
}
private val chest by lazy {
ModBlocks.PLACEHOLDER
}


//found reason why all these blocks were broken so this is not in use anymore
Expand All @@ -32,6 +35,6 @@ object TileMapperBlacklist {
}
}

fun isBlacklisted(block:Int):Boolean = block == ((spawnerBlock as IndexedBlock?)?.registryIndex ?: Int.MAX_VALUE)//if(block<0)false else blacklist.get(block)
fun isBlacklisted(block:Int):Boolean = (block == ((spawnerBlock as IndexedBlock?)?.registryIndex ?: Int.MAX_VALUE)) or (block == (chest as IndexedBlock).registryIndex) //if(block<0)false else blacklist.get(block)

}

0 comments on commit 2db0487

Please sign in to comment.