Skip to content

Commit

Permalink
Update to 1.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomate0613 committed Dec 6, 2023
1 parent bc08a85 commit 98aa70a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.20.1
loader_version=0.14.21
minecraft_version=1.20.3
loader_version=0.14.23

# Mod Properties
mod_version=1.1
mod_version=1.2
maven_group=tomate
archives_base_name=total-dragon

# Dependencies
fabric_version=0.83.1+1.20.1
fabric_version=0.91.1+1.20.3

# https://fabricmc.net/develop/
7 changes: 5 additions & 2 deletions src/main/java/tomate/totaldragon/mixin/PlayerListMixin.java
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.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -15,10 +16,12 @@

@Mixin(PlayerList.class)
public class PlayerListMixin {
@Shadow @Final private List<ServerPlayer> players;
@Shadow
@Final
private List<ServerPlayer> players;

@Inject(at = @At("HEAD"), method = "placeNewPlayer")
void onPlayerJoined(Connection connection, ServerPlayer serverPlayer, CallbackInfo ci) {
void onPlayerJoined(Connection connection, ServerPlayer serverPlayer, CommonListenerCookie commonListenerCookie, CallbackInfo ci) {
FightState.onPlayerJoin();
}

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 @@ -30,7 +30,7 @@

"depends": {
"fabricloader": ">=0.14.19",
"minecraft": "1.20.x",
"minecraft": "1.20.3",

"fabric": "*"
},
Expand Down

0 comments on commit 98aa70a

Please sign in to comment.