Skip to content

Commit

Permalink
Fixes empty group disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Jul 22, 2022
1 parent a18738e commit 03cdffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ public boolean shouldDropExperience() {
* @param text message to add
*/
public void addMessage(Component text) {
this.npcData.messages.add(new Pair<>(text, config.messages.messageDelay));
this.addMessage(text, config.messages.messageDelay);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public void clear() {
}

public void execute(ServerPlayer player) {
if (this.isEmpty()) {
return;
}

if (this.groupIndex >= this.size()) {
this.groupIndex = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fabric_version=0.56.0+1.19
forge_version=41.0.1
enable_forge=true
# Mod Properties
mod_version=1.10.4
mod_version=1.10.5
maven_group=org.samo_lego
archives_base_name=taterzens
# Dependencies
Expand Down

0 comments on commit 03cdffc

Please sign in to comment.