Skip to content

Commit

Permalink
Fix checkstyle issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Aug 2, 2018
1 parent 6c2b257 commit ea99b0a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
@@ -1,3 +1,22 @@
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.sk89q.worldedit.extent.clipboard.io;

import com.sk89q.jnbt.CompoundTag;
Expand Down
Expand Up @@ -169,14 +169,14 @@ private Clipboard readVersion1(Map<String, Tag> schematic) throws IOException {
int index = 0;
int i = 0;
int value = 0;
int varint_length = 0;
int varintLength = 0;
while (i < blocks.length) {
value = 0;
varint_length = 0;
varintLength = 0;

while (true) {
value |= (blocks[i] & 127) << (varint_length++ * 7);
if (varint_length > 5) {
value |= (blocks[i] & 127) << (varintLength++ * 7);
if (varintLength > 5) {
throw new RuntimeException("VarInt too big (probably corrupted data)");
}
if ((blocks[i] & 128) != 128) {
Expand Down

0 comments on commit ea99b0a

Please sign in to comment.