mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Minor changes to try & reduce method calls.
This commit is contained in:
parent
0cdb50e538
commit
b7354779d4
@ -160,11 +160,14 @@ public class HashChunkManager implements ChunkManager {
|
|||||||
ChunkStore in = null;
|
ChunkStore in = null;
|
||||||
|
|
||||||
UUID key = world.getUID();
|
UUID key = world.getUID();
|
||||||
if (!this.oldData.containsKey(key))
|
boolean oldDataHasKey = oldData.containsKey(key);
|
||||||
this.oldData.put(key, (new File(world.getWorldFolder(), "mcmmo_data")).exists());
|
|
||||||
|
|
||||||
if (this.oldData.containsKey(key) && oldData.get(key))
|
if (!oldDataHasKey) {
|
||||||
|
oldData.put(key, (new File(world.getWorldFolder(), "mcmmo_data")).exists());
|
||||||
|
}
|
||||||
|
else if (oldData.get(key)) {
|
||||||
convertChunk(new File(world.getWorldFolder(), "mcmmo_data"), cx, cz, world, true);
|
convertChunk(new File(world.getWorldFolder(), "mcmmo_data"), cx, cz, world, true);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
in = readChunkStore(world, cx, cz);
|
in = readChunkStore(world, cx, cz);
|
||||||
|
Loading…
Reference in New Issue
Block a user