diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2433d55 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +tab_width = 4 +insert_final_newline = true +max_line_length = 160 + +[*.json] +max_line_length = 20 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/build.gradle b/build.gradle index a8ba959..5edde29 100644 --- a/build.gradle +++ b/build.gradle @@ -6,10 +6,7 @@ plugins { id "maven-publish" } -sourceCompatibility = JavaVersion.VERSION_1_8 -targetCompatibility = JavaVersion.VERSION_1_8 - -archivesBaseName = project.archives_base_name +base.archivesName = project.archives_base_name version = "${project.mod_version}+${project.minecraft_version}" group = project.maven_group @@ -39,6 +36,9 @@ tasks.withType(JavaCompile).configureEach { } java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + withSourcesJar() } @@ -67,7 +67,6 @@ modrinth { versionNumber = "${project.mod_version}" versionName = "Phosphor-Legacy v${project.mod_version} (1.8.9)" versionType = "beta" - changelog = "Initial release" uploadFile = remapJar gameVersions = ["1.8.9"] diff --git a/gradle.properties b/gradle.properties index c7496f9..8f8332e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings_build=529 loader_version=0.14.22 # Mod Properties -mod_version=0.1.2 +mod_version=0.1.3 maven_group=io.grayray75.mods archives_base_name=phosphor-legacy diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 0105ad3..0ad6996 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,31 +1,31 @@ { - "schemaVersion": 1, - "id": "phosphor-legacy", - "version": "${version}", - "name": "Phosphor-Legacy", - "description": "Phosphor is a Minecraft mod aiming to save your CPU cycles and improve performance by optimizing one of Minecraft's most inefficient areas: the lighting engine.", - "authors": [ - "JellySquid", - "Grayray75" - ], - "contact": { - "homepage": "https://github.com/Grayray75/phosphor-legacy", - "sources": "https://github.com/Grayray75/phosphor-legacy", - "issues": "https://github.com/Grayray75/phosphor-legacy/issues" - }, - "license": "LGPL-3.0-only", - "icon": "assets/phosphor-legacy/icon.png", - "environment": "*", - "entrypoints": { - "main": [ - "me.jellysquid.mods.phosphor.mod.PhosphorMod" - ] - }, - "mixins": [ - "phosphor.mixins.json" - ], - "depends": { - "fabricloader": ">=0.14.0", - "minecraft": "1.8.9" - } + "schemaVersion": 1, + "id": "phosphor-legacy", + "version": "${version}", + "name": "Phosphor-Legacy", + "description": "Phosphor is a Minecraft mod aiming to save your CPU cycles and improve performance by optimizing one of Minecraft's most inefficient areas: the lighting engine.", + "authors": [ + "JellySquid", + "Grayray75" + ], + "contact": { + "homepage": "https://github.com/Grayray75/phosphor-legacy", + "sources": "https://github.com/Grayray75/phosphor-legacy", + "issues": "https://github.com/Grayray75/phosphor-legacy/issues" + }, + "license": "LGPL-3.0-only", + "icon": "assets/phosphor-legacy/icon.png", + "environment": "*", + "entrypoints": { + "main": [ + "me.jellysquid.mods.phosphor.mod.PhosphorMod" + ] + }, + "mixins": [ + "phosphor.mixins.json" + ], + "depends": { + "fabricloader": ">=0.14.0", + "minecraft": "1.8.9" + } } diff --git a/src/main/resources/phosphor.mixins.json b/src/main/resources/phosphor.mixins.json index 638cb60..f001c7c 100644 --- a/src/main/resources/phosphor.mixins.json +++ b/src/main/resources/phosphor.mixins.json @@ -1,27 +1,27 @@ { - "required": true, - "minVersion": "0.8", - "package": "me.jellysquid.mods.phosphor.mixins", - "compatibilityLevel": "JAVA_8", - "mixins": [ - "common.ChunkDataS2CPacketMixin", - "common.ChunkMixin", - "common.ChunkMixin$Vanilla", - "common.ChunkSectionMixin", - "common.DirectionAccessor", - "common.ServerChunkProviderAccessor", - "common.ServerChunkProviderMixin", - "common.ThreadedAnvilChunkStorageMixin", - "common.WorldMixin" - ], - "client": [ - "client.MinecraftClientMixin", - "common.ClientChunkProviderAccessor" - ], - "injectors": { - "defaultRequire": 1 - }, - "overwrites": { - "conformVisibility": true - } + "required": true, + "minVersion": "0.8", + "package": "me.jellysquid.mods.phosphor.mixins", + "compatibilityLevel": "JAVA_8", + "mixins": [ + "common.ChunkDataS2CPacketMixin", + "common.ChunkMixin", + "common.ChunkMixin$Vanilla", + "common.ChunkSectionMixin", + "common.DirectionAccessor", + "common.ServerChunkProviderAccessor", + "common.ServerChunkProviderMixin", + "common.ThreadedAnvilChunkStorageMixin", + "common.WorldMixin" + ], + "client": [ + "client.MinecraftClientMixin", + "common.ClientChunkProviderAccessor" + ], + "injectors": { + "defaultRequire": 1 + }, + "overwrites": { + "conformVisibility": true + } }