Skip to content

Commit

Permalink
1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Leymooo committed Dec 7, 2024
1 parent f75eaa3 commit 6903c91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ private int getCapthcaId(int version)
} else if ( version <= ProtocolConstants.MINECRAFT_1_20_3 )
{
return 979;
} else {
} else if (version <= ProtocolConstants.MINECRAFT_1_21_2){
return 982;
} else {
return 1031;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void write(Channel channel, int version, boolean flush)
} else if ( version <= ProtocolConstants.MINECRAFT_1_21 )
{
channel.write( buf1205.retainedDuplicate(), channel.voidPromise() );
} else if ( version <= ProtocolConstants.MINECRAFT_1_21_2 )
} else if ( version <= ProtocolConstants.MINECRAFT_1_21_4 )
{
channel.write( buf1212.retainedDuplicate(), channel.voidPromise() );
} else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static void init()
};


for ( int version : Arrays.asList( ProtocolConstants.MINECRAFT_1_20_2, ProtocolConstants.MINECRAFT_1_20_3, ProtocolConstants.MINECRAFT_1_20_5, ProtocolConstants.MINECRAFT_1_21, ProtocolConstants.MINECRAFT_1_21_2 ) )
for ( int version : Arrays.asList( ProtocolConstants.MINECRAFT_1_20_2, ProtocolConstants.MINECRAFT_1_20_3, ProtocolConstants.MINECRAFT_1_20_5, ProtocolConstants.MINECRAFT_1_21, ProtocolConstants.MINECRAFT_1_21_2, ProtocolConstants.MINECRAFT_1_21_4 ) )
{
configurationRegistry.put( version, new CachedRegistryData( dimension, version ) );
}
Expand Down

0 comments on commit 6903c91

Please sign in to comment.