Fixed server-sided Limbo music

-Fixed #35
-Changed the versioning format of jar files.
-Made Travis upload everything in the build folder.
This commit is contained in:
Robijnvogel 2018-01-19 07:59:56 +01:00
parent 6a5321c35b
commit 3d23749f34
3 changed files with 14 additions and 9 deletions

View file

@ -5,7 +5,7 @@ if: tag IS blank
before_install: chmod +x gradlew
install: "./gradlew setupCIWorkspace"
script: "./gradlew build"
script: "./gradlew clean build"
jdk:
- oraclejdk8
before_cache:
@ -21,7 +21,7 @@ deploy:
provider: releases
api_key:
secure: A26twoR4XbarXTCxNIlKr4zbDRw6B+u879+6BWEKmavgAnjhGkPb9PkmR3tPm7iQDp9K9dlkez5KGUJEX/tCMYqL2gQnjlt9BfcVu7YJ4SXhZ6Zcck1/+1jhDox8QHLT2zvgYhmmEWdDD78FHJfO+2+ejhdxDMt6xxVtn47426rs0d0I1L9KDlC8EVoe42c+142Dedk5IaI2GCU07nOKaZFtAnR0NIk/Cf5P7rtecd+jNR3kaAu24U/WPoUMH2cCCf1+ViK/oJgu4FgdEGp1kec0gZnwWqJ+bYvywGiohmbN9B0JsjrwVixYgmzEw00cvdcV8uZHY/RXfOVtDh3ex9xaQYu6Fiq7L8pnw/pN6wsr7kFE0HvhSDAILIAOHFt5jlocAUfjEV/wFQyZUhxZx6Qclx7rdwYt4+iwtB+DPXR71JaaeSLtuQ7Q6HbFxrnjo1biS2ERkdOJobNBHEZvH2A9O1+bx4q9z1+LAP/XXxK2+KpzVZzkDXVUMl81oyAycuipXZQVTyDQdp9XB+waj7xclL57Cibs/DfwOw9l8DKR981h2Q784jBVlJyv/s+vZDgouxLqeTJdsK2cKOuYKl/fMhio6FIJs7p8U7l2OiXbvAg5jY1sJj69ePn7hTiMn2QHVihVM0t3W3/ppp7U0XKo++hB2VXwT/fSS8E5aXs=
file: "./build/libs/dimdoors.jar"
file: ./build/libs/*
on:
repo: DimensionalDevelopment/DimDoors
branch: 1.12-WIP

View file

@ -21,8 +21,8 @@ repositories {
}
// Version info
String baseversion = "3.0.0" // Set beta to 0 after changing this
int beta = 5 // Set this to 0 for a non-beta release
String baseversion = "3.0" // Set beta to 0 after changing this
int beta = 5.2 // Set this to 0 for a non-beta release
ext.mcversion = "1.12.2"
ext.forgeversion = "14.23.1.2598"
String mcpversion = "snapshot_20180113"
@ -30,7 +30,7 @@ String mcpversion = "snapshot_20180113"
String suffix = ""
String shortSuffix = ""
if (beta != 0) {
suffix += "-beta$beta"
suffix += ".$beta" + "-b"
shortSuffix = suffix
if (System.getenv("TRAVIS_BUILD_NUMBER") != null && beta != 0) {
suffix += "+${System.getenv("TRAVIS_BUILD_NUMBER")}"
@ -41,8 +41,8 @@ if (beta != 0) {
version = ext.modversion = baseversion + suffix
group = "org.dimdev.dimdoors"
archivesBaseName = "dimdoors"
jar.archiveName = "dimdoors.jar" // Constant name for travis
archivesBaseName = "Dimdoors"
jar.archiveName = "Dimdoors-" + version + ".jar" // Constant name for travis
sourceCompatibility = "1.8"
compileJava {

View file

@ -24,8 +24,13 @@ import org.dimdev.dimdoors.shared.world.ModDimensions;
public class WorldProviderLimbo extends WorldProvider {
@SideOnly(Side.CLIENT)
private static final MusicTicker.MusicType music = DimDoors.proxy.isClient() ? EnumHelper.addEnum(MusicTicker.MusicType.class, "limbo", new Class<?>[] {SoundEvent.class, int.class, int.class}, ModSounds.CREEPY, 0, 0) : null;
public static MusicTicker.MusicType music;
static {
if (DimDoors.proxy.isClient()) {
music = EnumHelper.addEnum(MusicTicker.MusicType.class, "limbo", new Class<?>[] {SoundEvent.class, int.class, int.class}, ModSounds.CREEPY, 0, 0);
}
}
@Override
public void init() {
hasSkyLight = false;