Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ________Original code_____
- public void checkSessionLock()
- {
- try
- {
- File file = new File(savePath, "session.lock");
- DataInputStream datainputstream = new DataInputStream(new FileInputStream(file));
- try
- {
- if(datainputstream.readLong() != lockTimestamp)
- {
- throw new MinecraftException("The save is being accessed from another location, aborting");
- }
- }
- finally
- {
- datainputstream.close();
- }
- }
- catch(IOException ioexception)
- {
- throw new MinecraftException("Failed to check session lock, aborting");
- }
- }
- ______WTF CODE____
- public void checkSessionLock()
- {
- DataInputStream datainputstream;
- File file = new File(savePath, "session.lock");
- datainputstream = new DataInputStream(new FileInputStream(file));
- if(datainputstream.readLong() != lockTimestamp)
- {
- throw new MinecraftException("The save is being accessed from another location, aborting");
- }
- break MISSING_BLOCK_LABEL_61;
- Exception exception;
- exception;
- datainputstream.close();
- throw exception;
- datainputstream.close();
- break MISSING_BLOCK_LABEL_80;
- IOException ioexception;
- ioexception;
- throw new MinecraftException("Failed to check session lock, aborting");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement