Skip to content

Commit

Permalink
1.18 might not send datapack registries fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adde0109 committed Feb 15, 2024
1 parent 25c6152 commit 9c824ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "org.adde0109"
version = "1.5.1-beta"
version = "1.5.2-beta"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/adde0109/ambassador/Ambassador.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19;
import static com.velocitypowered.proxy.protocol.packet.brigadier.ArgumentIdentifier.mapSet;

@Plugin(id = "ambassador", name = "Ambassador", version = "1.5.1-beta", authors = {"adde0109"})
@Plugin(id = "ambassador", name = "Ambassador", version = "1.5.2-beta", authors = {"adde0109"})
public class Ambassador {

//Don't forget to update checkCompatibleVersion() when changing this value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static ModListPacket read(ByteBuf input, Context context, boolean FML3) {
registries.add(ProtocolUtils.readString(input, 32767));

List<String> dataPackRegistries = null;
if (FML3) {
if (FML3 && input.isReadable()) {
dataPackRegistries = new ArrayList<>();
len = ProtocolUtils.readVarInt(input);
for (int x = 0; x < len; x++)
Expand Down

0 comments on commit 9c824ab

Please sign in to comment.