Appease Codacy
This commit is contained in:
parent
812bc0d8c4
commit
220ee30d35
@ -104,7 +104,7 @@ public final class SpongeSchematic extends StaticSchematic {
|
|||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
IBlockState deserialize() {
|
private IBlockState deserialize() {
|
||||||
if (this.blockState == null) {
|
if (this.blockState == null) {
|
||||||
Block block = Block.REGISTRY.getObject(this.resourceLocation);
|
Block block = Block.REGISTRY.getObject(this.resourceLocation);
|
||||||
this.blockState = block.getDefaultState();
|
this.blockState = block.getDefaultState();
|
||||||
@ -119,7 +119,7 @@ public final class SpongeSchematic extends StaticSchematic {
|
|||||||
return this.blockState;
|
return this.blockState;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SerializedBlockState getFromString(String s) {
|
private static SerializedBlockState getFromString(String s) {
|
||||||
Matcher m = REGEX.matcher(s);
|
Matcher m = REGEX.matcher(s);
|
||||||
if (!m.matches()) {
|
if (!m.matches()) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -54,9 +54,10 @@ public final class VarInt {
|
|||||||
return this.serialized;
|
return this.serialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static byte[] serialize0(int value) {
|
private static byte[] serialize0(int valueIn) {
|
||||||
ByteList bytes = new ByteArrayList();
|
ByteList bytes = new ByteArrayList();
|
||||||
|
|
||||||
|
int value = valueIn;
|
||||||
while ((value & 0x80) != 0) {
|
while ((value & 0x80) != 0) {
|
||||||
bytes.add((byte) (value & 0x7F | 0x80));
|
bytes.add((byte) (value & 0x7F | 0x80));
|
||||||
value >>>= 7;
|
value >>>= 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user