1.13-pre2 + merge master

This commit is contained in:
creeper123123321 2018-06-17 10:16:53 -03:00
commit cb4fcde6f4
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package us.myles.ViaVersion.protocols.protocolsnapshotto1_12_2.type;
package us.myles.ViaVersion.protocols.protocolsnapshotto1_12_2.types;
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
import io.netty.buffer.ByteBuf;
@ -19,6 +19,7 @@ import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
// todo 1.13-pre2 direct pallete changes
public class Chunk1_13Type extends PartialType<Chunk, ClientWorld> {
public Chunk1_13Type(ClientWorld param) {
super(param, Chunk.class);
@ -57,6 +58,7 @@ public class Chunk1_13Type extends PartialType<Chunk, ClientWorld> {
byte[] biomeData = groundUp ? new byte[256] : null;
if (groundUp) {
for (int i = 0; i < 256; i++){
// todo use int in Chunk?
biomeData[i] = (byte) input.readInt();
}
}

View File

@ -1,4 +1,4 @@
package us.myles.ViaVersion.protocols.protocolsnapshotto1_12_2.type;
package us.myles.ViaVersion.protocols.protocolsnapshotto1_12_2.types;
import io.netty.buffer.ByteBuf;
import us.myles.ViaVersion.api.type.Type;

View File

@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa
}
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException {
String[] args = arguments.length() > 0 ? arguments.split(" ") : new String[0];
String[] args = arguments.split(" "); // ViaCommandHandler handles empty String in array
return onTabComplete(new SpongeCommandSender(source), args);
}