3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Fix checkstyle issues.

Dieser Commit ist enthalten in:
Matthew Miller 2018-08-02 14:45:26 +10:00
Ursprung a75d9e896b
Commit ea349bdbf1
2 geänderte Dateien mit 23 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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; package com.sk89q.worldedit.extent.clipboard.io;
import com.sk89q.jnbt.CompoundTag; import com.sk89q.jnbt.CompoundTag;

Datei anzeigen

@ -169,14 +169,14 @@ public class SpongeSchematicReader extends NBTSchematicReader {
int index = 0; int index = 0;
int i = 0; int i = 0;
int value = 0; int value = 0;
int varint_length = 0; int varintLength = 0;
while (i < blocks.length) { while (i < blocks.length) {
value = 0; value = 0;
varint_length = 0; varintLength = 0;
while (true) { while (true) {
value |= (blocks[i] & 127) << (varint_length++ * 7); value |= (blocks[i] & 127) << (varintLength++ * 7);
if (varint_length > 5) { if (varintLength > 5) {
throw new RuntimeException("VarInt too big (probably corrupted data)"); throw new RuntimeException("VarInt too big (probably corrupted data)");
} }
if ((blocks[i] & 128) != 128) { if ((blocks[i] & 128) != 128) {