mirror of
https://github.com/LOOHP/Limbo.git
synced 2026-06-08 14:11:44 +00:00
Update to 1.17.1
This commit is contained in:
@@ -108,8 +108,8 @@ public class Limbo {
|
||||
|
||||
//===========================
|
||||
|
||||
public final String serverImplementationVersion = "1.17";
|
||||
public final int serverImplmentationProtocol = 755;
|
||||
public final String serverImplementationVersion = "1.17.1";
|
||||
public final int serverImplmentationProtocol = 756;
|
||||
public final String limboImplementationVersion;
|
||||
|
||||
private AtomicBoolean isRunning;
|
||||
|
||||
@@ -8,14 +8,14 @@ import com.loohp.limbo.utils.DataTypeIO;
|
||||
|
||||
public class PacketPlayOutEntityDestroy extends PacketOut {
|
||||
|
||||
private int entityId;
|
||||
private int[] entityIds;
|
||||
|
||||
public PacketPlayOutEntityDestroy(int entityId) {
|
||||
this.entityId = entityId;
|
||||
public PacketPlayOutEntityDestroy(int... entityIds) {
|
||||
this.entityIds = entityIds;
|
||||
}
|
||||
|
||||
public int getEntityId() {
|
||||
return entityId;
|
||||
public int[] getEntityIds() {
|
||||
return entityIds;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -24,7 +24,10 @@ public class PacketPlayOutEntityDestroy extends PacketOut {
|
||||
|
||||
DataOutputStream output = new DataOutputStream(buffer);
|
||||
output.writeByte(Packet.getPlayOut().get(getClass()));
|
||||
DataTypeIO.writeVarInt(output, entityId);
|
||||
DataTypeIO.writeVarInt(output, entityIds.length);
|
||||
for (int entityId : entityIds) {
|
||||
DataTypeIO.writeVarInt(output, entityId);
|
||||
}
|
||||
|
||||
return buffer.toByteArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user