3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 00:22:51 +01:00

1.13-pre2 + merge master

Dieser Commit ist enthalten in:
creeper123123321 2018-06-17 10:16:53 -03:00
Commit cb4fcde6f4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1
3 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

@ -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 io.netty.buffer.ByteBuf;
import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.api.type.Type;

Datei anzeigen

@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa
} }
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException { 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); return onTabComplete(new SpongeCommandSender(source), args);
} }