Skip to content

Commit

Permalink
Port to 1.18
Browse files Browse the repository at this point in the history
- Updated Gradle wrapper to 7.3.3
- Updated buildscript dependencies
- Updated required game version to 1.18.x
- Changed metadata links to use full URLs
- Migrate to new tick scheduling API
  • Loading branch information
ChloeDawn committed Feb 4, 2022
1 parent d355e24 commit da86c6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import java.time.Instant

plugins {
id(/*net.fabricmc.*/ "fabric-loom") version "0.10.64"
id(/*net.fabricmc.*/ "fabric-loom") version "0.10.66"
id("io.github.juuxel.loom-quiltflower-mini") version "1.2.1"
id("net.nemerosa.versioning") version "2.15.1"
id("org.gradle.signing")
}

group = "dev.sapphic"
version = "2.1.1"
version = "2.2.0"

if ("CI" in System.getenv()) {
version = "$version-${versioning.info.build}"
Expand Down Expand Up @@ -46,19 +46,19 @@ repositories {
}

dependencies {
minecraft("com.mojang:minecraft:1.17.1")
minecraft("com.mojang:minecraft:1.18.1")
mappings(loom.officialMojangMappings())

modImplementation("net.fabricmc:fabric-loader:0.12.12")
modImplementation("net.fabricmc:fabric-loader:0.13.0")
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("org.jetbrains:annotations:23.0.0")
implementation("org.checkerframework:checker-qual:3.20.0")
implementation("org.checkerframework:checker-qual:3.21.1")

modCompileOnly("curse.maven:charm-318872:3393290") { // 1.17-3.3.2
isTransitive = false
}

modCompileOnly("curse.maven:red-bits-403914:3481458") { // 1.10.1
modCompileOnly("curse.maven:red-bits-403914:3612273") { // 1.12.0
isTransitive = false
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=dd54e87b4d7aa8ff3c6afb0f7805aa121d4b70bca55b8c9b1b896eb103184582
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-all.zip
distributionSha256Sum=c9490e938b221daf0094982288e4038deed954a3f12fb54cbf270ddf4e37d879
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private void updateFluidState(
final BlockPos offset,
final CallbackInfoReturnable<BlockState> ci) {
if (state.getValue(WATERLOGGED)) {
level.getLiquidTicks().scheduleTick(pos, Fluids.WATER, Fluids.WATER.getTickDelay(level));
level.scheduleTick(pos, Fluids.WATER, Fluids.WATER.getTickDelay(level));
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Allows placement of pressure plates on any solid face of a block.",
"license": "Apache-2.0",
"depends": {
"minecraft": ">=1.16 <=1.17.1",
"minecraft": "1.18.x",
"fabricloader": ">=0.12.11",
"java": ">=8"
},
Expand All @@ -22,8 +22,8 @@
"Chloe Dawn"
],
"contact": {
"homepage": "https://bit.ly/3kEJS8j",
"sources": "https://git.io/JY81y",
"issues": "https://git.io/JWKa8"
"homepage": "https://www.curseforge.com/minecraft/mc-mods/plated",
"sources": "https://github.com/ChloeDawn/Plated",
"issues": "https://github.com/ChloeDawn/Plated/issues"
}
}

0 comments on commit da86c6a

Please sign in to comment.