Skip to content

Commit

Permalink
1.4.8-1.20.2-1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CmdrJane committed Dec 18, 2023
1 parent e133a32 commit ec21e72
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.2

# Mod Properties
mod_version = 1.4.8+1.20
mod_version = 1.4.8+1.20.2-1.20.4
maven_group = ru.aiefu
archives_base_name = time-and-wind-ct

# Dependencies
fabric_version=0.83.0+1.20
fabric_version=0.91.3+1.20.4
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.network.Connection;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.network.CommonListenerCookie;
import net.minecraft.server.players.PlayerList;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -13,7 +14,7 @@
@Mixin(PlayerList.class)
public class PlayerManagerMixins {
@Inject(method = "placeNewPlayer", at = @At(value = "INVOKE", target = "net/minecraft/server/level/ServerLevel.getGameRules ()Lnet/minecraft/world/level/GameRules;", shift = At.Shift.BEFORE))
private void syncTimeDurationOnJoin(Connection connection, ServerPlayer player, CallbackInfo ci){
TimeAndWindCT.sendConfigSyncPacket(player);
private void syncTimeDurationOnJoin(Connection connection, ServerPlayer serverPlayer, CommonListenerCookie commonListenerCookie, CallbackInfo ci){
TimeAndWindCT.sendConfigSyncPacket(serverPlayer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ protected ServerWorldMixins(WritableLevelData writableLevelData, ResourceKey<Lev
@Shadow @Final
List<ServerPlayer> players;

@Shadow protected abstract void resetWeatherCycle();
@Shadow
public abstract void resetWeatherCycle();

@Unique
protected Ticker timeTicker;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"depends": {
"fabricloader": ">=0.14.21",
"fabric": ">=0.83.0",
"minecraft": ">=1.20",
"minecraft": ">=1.20.2",
"java": ">=17"
},
"suggests": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/tawct.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "ru.aiefu.timeandwindct.mixin",
"compatibilityLevel": "JAVA_16",
"compatibilityLevel": "JAVA_17",
"mixins": [
"DimensionMixins",
"PlayerManagerMixins",
Expand Down

0 comments on commit ec21e72

Please sign in to comment.