mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-10 20:41:14 +01:00
1.13-pre2 + merge master
This commit is contained in:
commit
cb4fcde6f4
@ -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();
|
||||
}
|
||||
}
|
@ -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;
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user