From 2db0487d83f34ec5194a8bd71516f25b5f843798 Mon Sep 17 00:00:00 2001 From: ImplementsLegend Date: Mon, 1 Jul 2024 22:07:29 +0200 Subject: [PATCH] blacklisted chests from tilemapper to correctly apply item quantity/rarity in dungeons changed version --- gradle.properties | 2 +- .../implementslegend/mod/vaultfaster/TileMapperBlacklist.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index a523329..a0a2980 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/implementslegend/mod/vaultfaster/TileMapperBlacklist.kt b/src/main/java/implementslegend/mod/vaultfaster/TileMapperBlacklist.kt index cdb6a63..fdc5ea9 100644 --- a/src/main/java/implementslegend/mod/vaultfaster/TileMapperBlacklist.kt +++ b/src/main/java/implementslegend/mod/vaultfaster/TileMapperBlacklist.kt @@ -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 @@ -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) } \ No newline at end of file