From 9eb5037f3064a0a3b9341ec3e3b10c316d6ae320 Mon Sep 17 00:00:00 2001 From: kuroppoi <68156848+kuroppoi@users.noreply.github.com> Date: Tue, 20 Apr 2021 00:01:11 +0200 Subject: [PATCH] Fixed exploration progress not loading --- gameserver/src/main/java/brainwine/gameserver/zone/Zone.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gameserver/src/main/java/brainwine/gameserver/zone/Zone.java b/gameserver/src/main/java/brainwine/gameserver/zone/Zone.java index bd00af0..f4c96c5 100644 --- a/gameserver/src/main/java/brainwine/gameserver/zone/Zone.java +++ b/gameserver/src/main/java/brainwine/gameserver/zone/Zone.java @@ -610,11 +610,11 @@ public class Zone { } public void setChunksExplored(boolean[] chunksExplored) { - if(chunksExplored.length != width * height) { + if(chunksExplored.length != getChunkCount()) { return; } - System.arraycopy(chunksExplored, 0, this.chunksExplored, 0, width * height); + System.arraycopy(chunksExplored, 0, this.chunksExplored, 0, chunksExplored.length); } /**