mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +01:00
Soften the dependency on sodium for being able to build
This commit is contained in:
parent
7383521435
commit
4a2c351aae
2 changed files with 7 additions and 36 deletions
40
build.gradle
40
build.gradle
|
@ -22,41 +22,16 @@ loom {
|
||||||
|
|
||||||
reckon {
|
reckon {
|
||||||
scopeFromProp()
|
scopeFromProp()
|
||||||
stageFromProp('beta', 'rc', 'final')
|
stageFromProp 'beta', 'rc', 'final'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven {
|
maven { name 'entity-reach-attributes'; url 'https://maven.jamieswhiteshirt.com/libs-release' }
|
||||||
name = 'modrinth'
|
maven { name 'trinkets'; url 'https://ladysnake.jfrog.io/artifactory/mods' }
|
||||||
url = "https://api.modrinth.com/maven"
|
maven { name 'mod-menu'; url 'https://maven.terraformersmc.com/' }
|
||||||
}
|
maven { name 'minelp'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
|
||||||
maven {
|
maven { name 'minelp-release'; url 'https://repo.minelittlepony-mod.com/maven/release' }
|
||||||
name = 'modmenu'
|
|
||||||
url = 'https://maven.terraformersmc.com/releases'
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url "https://maven.jamieswhiteshirt.com/libs-release"
|
|
||||||
content {
|
|
||||||
includeGroup "com.jamieswhiteshirt"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = 'minelp'
|
|
||||||
url = 'https://repo.minelittlepony-mod.com/maven/snapshot'
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = 'minelp-release'
|
|
||||||
url = 'https://repo.minelittlepony-mod.com/maven/release'
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "TerraformersMC"
|
|
||||||
url = "https://maven.terraformersmc.com/"
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "Ladysnake Libs"
|
|
||||||
url = "https://ladysnake.jfrog.io/artifactory/mods"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -74,9 +49,6 @@ dependencies {
|
||||||
include "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}"
|
include "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}"
|
||||||
|
|
||||||
modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
|
modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
|
||||||
modApi "maven.modrinth:sodium:mc1.19.2-0.4.4"
|
|
||||||
compileOnly "org.joml:joml:1.10.4"
|
|
||||||
|
|
||||||
modCompileOnly "dev.emi:trinkets:3.4.0"
|
modCompileOnly "dev.emi:trinkets:3.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,10 @@ import org.spongepowered.asm.mixin.injection.*;
|
||||||
import com.minelittlepony.unicopia.client.ClientBlockDestructionManager;
|
import com.minelittlepony.unicopia.client.ClientBlockDestructionManager;
|
||||||
|
|
||||||
import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
|
import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
|
||||||
import me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer;
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.render.*;
|
import net.minecraft.client.render.*;
|
||||||
|
|
||||||
@Mixin(SodiumWorldRenderer.class)
|
@Mixin(targets = { "me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer" }, remap = false)
|
||||||
abstract class MixinSodiumWorldRenderer {
|
abstract class MixinSodiumWorldRenderer {
|
||||||
@ModifyVariable(method = "renderTileEntities", at = @At("HEAD"))
|
@ModifyVariable(method = "renderTileEntities", at = @At("HEAD"))
|
||||||
public Long2ObjectMap<SortedSet<BlockBreakingInfo>> modifyDestruction(Long2ObjectMap<SortedSet<BlockBreakingInfo>> blockBreakingProgressions) {
|
public Long2ObjectMap<SortedSet<BlockBreakingInfo>> modifyDestruction(Long2ObjectMap<SortedSet<BlockBreakingInfo>> blockBreakingProgressions) {
|
||||||
|
|
Loading…
Reference in a new issue