Skip to content

Commit

Permalink
Update to 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaargolo committed Sep 4, 2022
1 parent 28c3766 commit 5705336
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 5705336

Please sign in to comment.