Skip to content

Commit

Permalink
Fix very rare CME; investigate cause later
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Dec 21, 2024
1 parent b880f51 commit 631217a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

import com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class PlayerBlockHistory {
public final Deque<BlockModification> modificationQueue = new ArrayDeque<>();
// TODO, figure out how its possible for this to CME!
public final Deque<BlockModification> modificationQueue = new ConcurrentLinkedDeque<>();

// Add a new block modification to the history.
public void add(BlockModification modification) {
Expand Down

0 comments on commit 631217a

Please sign in to comment.