diff --git a/gradle.properties b/gradle.properties index efe9063..9e5de20 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,21 +10,21 @@ modrinth_version=1.2.0 github_api_version=1.114 # Mod Properties -mod_version=1.0-BETA+1.18 +mod_version=1.0-BETA+1.19 maven_group=io.github.lucaargolo # Fabric Properties -minecraft_version=1.18.2 -yarn_mappings=1.18.2+build.4 +minecraft_version=1.19.2 +yarn_mappings=1.19.2+build.3 loader_version=0.14.9 #Fabric api -fabric_version=0.58.0+1.18.2 +fabric_version=0.59.0+1.19.2 fabric_kotlin_version=1.8.2+kotlin.1.7.10 # Libraries -modmenu_version=3.2.3 -rei_version=8.3.529 +modmenu_version=4.0.6 +rei_version=9.1.526 # Publishing curseforge_id=667863 diff --git a/src/main/kotlin/io/github/lucaargolo/accuratemaps/client/AccurateMapsClient.kt b/src/main/kotlin/io/github/lucaargolo/accuratemaps/client/AccurateMapsClient.kt index 59fd04a..6cad89b 100644 --- a/src/main/kotlin/io/github/lucaargolo/accuratemaps/client/AccurateMapsClient.kt +++ b/src/main/kotlin/io/github/lucaargolo/accuratemaps/client/AccurateMapsClient.kt @@ -18,11 +18,11 @@ import net.minecraft.item.map.MapState import net.minecraft.network.packet.s2c.play.MapUpdateS2CPacket import net.minecraft.util.math.BlockPos import net.minecraft.util.math.Direction +import net.minecraft.util.math.random.Random import net.minecraft.util.registry.Registry import net.minecraft.world.biome.BiomeKeys import org.lwjgl.opengl.GL11 import java.nio.ByteBuffer -import java.util.* object AccurateMapsClient: ClientModInitializer { @@ -45,7 +45,7 @@ object AccurateMapsClient: ClientModInitializer { Registry.BLOCK.forEach { block -> block.stateManager.states.forEach { state -> val blockModel = client.bakedModelManager.blockModels.getModel(state) - val blockSprite = blockModel.getQuads(state, Direction.UP, Random()).firstOrNull()?.sprite ?: blockModel.particleSprite + val blockSprite = blockModel.getQuads(state, Direction.UP, Random.create()).firstOrNull()?.sprite ?: blockModel.particleSprite var sumIndex = 0 var sumR = 0 var sumG = 0 diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 20e168e..c5c3179 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -35,8 +35,8 @@ "accessWidener": "accuratemaps.accesswidener", "depends": { "fabricloader": ">=0.14.8", - "fabric": ">=0.58.0+1.18", + "fabric": ">=0.56.0+1.19", "fabric-language-kotlin": ">=1.8.0+kotlin.1.7.0", - "minecraft": "1.18.x" + "minecraft": "1.19.x" } }