Skip to content

Commit a9f6aa6

Browse files
committed
fixed bug
1 parent 78d6b1b commit a9f6aa6

File tree

8 files changed

+2
-0
lines changed

8 files changed

+2
-0
lines changed

src/main/java/net/potato/tuff/TuffX.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ public void onPlayerQuit(PlayerQuitEvent event) {
332332
@EventHandler
333333
public void onPlayerJoin(PlayerJoinEvent event) {
334334
Player player = event.getPlayer();
335+
sentSections.removeIf(key -> key.playerId().equals(player.getUniqueId()));
335336
new BukkitRunnable() {
336337
@Override
337338
public void run() {
@@ -390,6 +391,7 @@ public void run() {
390391
for (int sectionY = -4; sectionY < 0; sectionY++) {
391392
ChunkSectionKey key = new ChunkSectionKey(uid, worldName, cx, cz, sectionY);
392393
if (sentSections.contains(key)) {
394+
getLogger().info("Skipping already-sent section: " + key);
393395
continue;
394396
}
395397
try {

target/TuffX.jar

144 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
136 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
290 Bytes
Binary file not shown.

target/original-TuffX.jar

144 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)