Skip to content

Commit

Permalink
Remove some debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioG1 authored and ProgrammerDan committed Apr 22, 2016
1 parent 6533bf7 commit 7875e2f
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public static void Obfuscate(Object packet, Player player) {
}

public static void Obfuscate(Packet56 packet, Player player) {
Orebfuscator.log("Obfuscate Packet56");
ChunkInfo[] infos = getInfo(packet, player);

for (ChunkInfo info : infos) {
Expand All @@ -96,14 +95,11 @@ public static void Obfuscate(Packet56 packet, Player player) {
}

public static void Obfuscate(Packet51 packet, Player player) {
Orebfuscator.log("Obfuscate Packet51_false");
ChunkInfo info = getInfo(packet, player);

if (info.chunkMask == 0) {
return;
}

Orebfuscator.log("Obfuscate Packet51");
ComputeChunkInfoAndObfuscate(info);
}

Expand Down Expand Up @@ -159,13 +155,11 @@ public static byte[] Obfuscate(ChunkInfo info) {
hash = CalculationsUtil.Hash(info.buffer, info.bytes);
// Sanitize buffer for caching
PrepareBufferForCaching(info.buffer, info.bytes);

// Get cache folder
File cacheFolder = new File(OrebfuscatorConfig.getCacheFolder(), info.world.getName());
// Create cache objects
cache = new ObfuscatedCachedChunk(cacheFolder, info.chunkX, info.chunkZ);
info.useCache = true;

info.useCache = true;
// Check if hash is consistent
cache.Read();

Expand Down

0 comments on commit 7875e2f

Please sign in to comment.