Skip to content

Commit

Permalink
easiest 1.12 support ever
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed Aug 16, 2022
1 parent 2a47503 commit 2db4091
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_name = PolyTime
mod_id = polytime
mod_version = 1.0.0-alpha3
mod_version = 1.0.0-alpha4

essential.defaults.loom=0

Expand Down
4 changes: 3 additions & 1 deletion root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ plugins {
}

preprocess {
"1.8.9-forge"(10809, "srg") {}
"1.8.9-forge"(10809, "srg") {
"1.12.2-forge"(11202, "srg") {}
}
}
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ rootProject.name = mod_name
rootProject.buildFileName = "root.gradle.kts"

listOf(
"1.8.9-forge"
"1.8.9-forge",
"1.12.2-forge"
).forEach { version ->
include(":$version")
project(":$version").apply {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/cc/polyfrost/polytime/mixin/WorldInfoMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import cc.polyfrost.polytime.PolyTime;
import net.minecraft.world.storage.WorldInfo;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -10,6 +12,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@SideOnly(Side.CLIENT)
@Mixin(WorldInfo.class)
public class WorldInfoMixin {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
import cc.polyfrost.polytime.PolyTime;
import cc.polyfrost.polytime.config.TimeConfig;
import net.minecraft.world.WorldProvider;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;

@SideOnly(Side.CLIENT)
@Mixin(WorldProvider.class)
public class WorldProviderMixin {

Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/mixins.polytime.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7",
"package": "cc.polyfrost.polytime.mixin",
"refmap": "mixins.oneconfig.refmap.json",
"refmap": "mixins.polytime.refmap.json",
"verbose": true,
"client": [
"WorldInfoMixin",
"WorldProviderMixin"
],
"mixins": [

]
}

0 comments on commit 2db4091

Please sign in to comment.