Appease Codacy

This commit is contained in:
Brady 2019-12-27 21:28:05 -06:00
parent 812bc0d8c4
commit 220ee30d35
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 4 additions and 3 deletions

View File

@ -104,7 +104,7 @@ public final class SpongeSchematic extends StaticSchematic {
this.properties = properties;
}
IBlockState deserialize() {
private IBlockState deserialize() {
if (this.blockState == null) {
Block block = Block.REGISTRY.getObject(this.resourceLocation);
this.blockState = block.getDefaultState();
@ -119,7 +119,7 @@ public final class SpongeSchematic extends StaticSchematic {
return this.blockState;
}
static SerializedBlockState getFromString(String s) {
private static SerializedBlockState getFromString(String s) {
Matcher m = REGEX.matcher(s);
if (!m.matches()) {
return null;

View File

@ -54,9 +54,10 @@ public final class VarInt {
return this.serialized;
}
private static byte[] serialize0(int value) {
private static byte[] serialize0(int valueIn) {
ByteList bytes = new ByteArrayList();
int value = valueIn;
while ((value & 0x80) != 0) {
bytes.add((byte) (value & 0x7F | 0x80));
value >>>= 7;