Skip to content

Commit 470946e

Browse files
committed
Undo chunk packet start/end changes
1 parent 1879333 commit 470946e

File tree

1 file changed

+0
-6
lines changed
  • worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter

1 file changed

+0
-6
lines changed

worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/NMSAdapter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ protected static <LevelChunkSection> boolean setSectionAtomic(
175175
* @since 2.12.0
176176
*/
177177
protected static void beginChunkPacketSend(String worldName, IntPair pair, StampLockHolder stampedLock) {
178-
if (Fawe.isMainThread()) {
179-
return;
180-
}
181178
ConcurrentHashMap<IntPair, ChunkSendLock> chunks = FaweBukkitWorld.getWorldSendingChunksMap(worldName);
182179
chunks.compute(pair, (k, lock) -> {
183180
if (lock == null) {
@@ -199,9 +196,6 @@ protected static void beginChunkPacketSend(String worldName, IntPair pair, Stamp
199196
* @since 2.12.0
200197
*/
201198
protected static void endChunkPacketSend(String worldName, IntPair pair, StampLockHolder lockHolder) {
202-
if (Fawe.isMainThread()) {
203-
return;
204-
}
205199
ConcurrentHashMap<IntPair, ChunkSendLock> chunks = FaweBukkitWorld.getWorldSendingChunksMap(worldName);
206200
chunks.computeIfPresent(pair, (k, lock) -> {
207201
if (lock.lock != lockHolder.chunkLock.lock) {

0 commit comments

Comments
 (0)