Fix compilation and add editorconfig

This commit is contained in:
AlexProgrammerDE 2023-12-23 12:32:45 +01:00
parent d9d05390d8
commit 32a5513710
2 changed files with 13 additions and 1 deletions
.editorconfig
src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound

12
.editorconfig Normal file
View file

@ -0,0 +1,12 @@
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true
[*.java]
ij_java_class_count_to_use_import_on_demand = 1000

View file

@ -97,7 +97,7 @@ public class ClientboundPlayerInfoUpdatePacket implements MinecraftPacket {
}
}
public void serialize(ByteBuf out, MinecraftCodecHelper helper) {
public void serialize(ByteBuf out, MinecraftCodecHelper helper) throws IOException {
helper.writeEnumSet(out, this.actions, PlayerListEntryAction.VALUES);
helper.writeVarInt(out, this.entries.length);
for (PlayerListEntry entry : this.entries) {