Disabled rift particles and made sure libraries are shaded in.

This commit is contained in:
Waterpicker 2020-07-20 19:43:58 -05:00
parent 8693126a64
commit 930a96e88b
3 changed files with 19 additions and 6 deletions

View file

@ -21,6 +21,12 @@ targetCompatibility = 1.8
repositories {
maven { url = 'https://maven.fabricmc.net/' }
maven { url 'https://jitpack.io' }
mavenCentral()
}
configurations {
shade
modImplementation.extendsFrom shade
}
dependencies {
@ -28,14 +34,14 @@ dependencies {
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modApi "net.fabricmc.fabric-api:fabric-api:0.14.1+build.372-1.16"
modImplementation 'com.flowpowered:flow-math:1.0.3'
modImplementation 'org.jgrapht:jgrapht-core:1.1.0'
modImplementation 'com.github.DimensionalDevelopment:poly2tri.java:0.1.1'
shade 'com.flowpowered:flow-math:1.0.3'
shade 'org.jgrapht:jgrapht-core:1.1.0'
shade 'com.github.DimensionalDevelopment:poly2tri.java:0.1.1'
modImplementation 'com.github.Waterpicker:OpenWorlds:1.0.0'
include 'com.github.Waterpicker:OpenWorlds:1.0.0'
}
version "4.0-alpha.2"
version "4.0-alpha.3"
archivesBaseName = "dimensional-doors"
processResources {
@ -46,6 +52,12 @@ processResources {
inputs.property "version", project.version
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep))
}
}
artifacts {
archives jar
}

View file

@ -6,5 +6,6 @@ pluginManagement {
url = 'https://maven.fabricmc.net/'
}
gradlePluginPortal()
mavenCentral()
}
}

View file

@ -76,11 +76,11 @@ public class DetachedRiftBlock extends Block implements RiftProvider<DetachedRif
);
}
MinecraftClient.getInstance().particleManager.addParticle(new RiftParticle(
/*MinecraftClient.getInstance().particleManager.addParticle(new RiftParticle(
(ClientWorld) world,
pos.getX() + .5, pos.getY() + 1.5, pos.getZ() + .5,
rand.nextGaussian() * speed, rand.nextGaussian() * speed, rand.nextGaussian() * speed,
outsidePocket ? 0.0f : 0.7f, 0.55f, rift.stabilized ? 750 : 2000, rift.stabilized ? 750 : 2000)
);
);*/
}
}