aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/olacraft/network/GameClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/olacraft/network/GameClient.java')
-rw-r--r--src/ru/olamedia/olacraft/network/GameClient.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ru/olamedia/olacraft/network/GameClient.java b/src/ru/olamedia/olacraft/network/GameClient.java
index f74340a..ee9ce32 100644
--- a/src/ru/olamedia/olacraft/network/GameClient.java
+++ b/src/ru/olamedia/olacraft/network/GameClient.java
@@ -25,6 +25,7 @@ import ru.olamedia.olacraft.network.packet.WorldInfoPacket;
import ru.olamedia.olacraft.scene.GameScene;
import ru.olamedia.olacraft.world.WorldInfo;
import ru.olamedia.olacraft.world.dataProvider.CachedChunkDataProvider;
+import ru.olamedia.olacraft.world.dataProvider.LocalChunkDataProvider;
import ru.olamedia.olacraft.world.dataProvider.RemoteChunkDataProvider;
import ru.olamedia.olacraft.world.provider.WorldProvider;
@@ -63,9 +64,12 @@ public class GameClient extends ConnectionStateListener implements IPacketListen
public GameClient() {
// INIT WORLD
worldProvider = new WorldProvider();
- worldProvider.setChunkDataProvider(new CachedChunkDataProvider(new RemoteChunkDataProvider(this)));
// worldProvider.setChunkDataProvider(new CachedChunkDataProvider(new
- // LocalChunkDataProvider(worldProvider.getInfo().name)));
+ // RemoteChunkDataProvider(this)));
+ // worldProvider.setChunkDataProvider(new
+ // LocalChunkDataProvider(worldProvider.getInfo().name));
+ worldProvider.setChunkDataProvider(new CachedChunkDataProvider(new LocalChunkDataProvider(worldProvider
+ .getInfo().name)));
// CREATE SCENE
scene = new GameScene(worldProvider);
Kryo kryo = client.getKryo();