Skip to content

Commit

Permalink
Release 2.6.1 (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs authored Jan 26, 2024
2 parents 9d34ca8 + 296e82a commit ef2b940
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "de.eldoria"
version = "2.6.0"
version = "2.6.1"

var publishModules = setOf("schematicbrushreborn-api",
"schematicbrushreborn-core",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,7 @@ public void queue(RenderSink renderSink) {


public void remove(Player player) {
queue.removeIf(e -> e.sinkOwner().equals(player.getUniqueId()));
}

public void process(Player player) {
queue.removeIf(e -> {
if (e.sinkOwner().equals(player.getUniqueId())) {
e.sendChanges();
return true;
}
return false;
});
queue.removeIf(e -> e == null || e.sinkOwner().equals(player.getUniqueId()));
}

public int packetQueueCount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public void onPrePaste(PrePasteEvent event) {
* @param player player to resolve
*/
private void resolveBlocked(Player player) {
worker.process(player);
RenderSink playerSink = getSink(player);
worker.remove(player);
// We push and send empty changes
playerSink.pushAndSend(null);
//getChanges(player).ifPresent(change -> new PaketWorker.ChangeEntry(player, change, null).sendChanges());
Expand Down

0 comments on commit ef2b940

Please sign in to comment.