forked from BLOCKFANTASY/LOOHP-Limbo
Update to 1.17.1
This commit is contained in:
parent
cbb58561fd
commit
d920577ed8
4
pom.xml
4
pom.xml
|
|
@ -5,7 +5,7 @@
|
|||
<groupId>com.loohp</groupId>
|
||||
<artifactId>Limbo</artifactId>
|
||||
<name>Limbo</name>
|
||||
<version>0.5.1-ALPHA</version>
|
||||
<version>0.5.2-ALPHA</version>
|
||||
|
||||
<description>Standalone Limbo Minecraft Server.</description>
|
||||
<url>https://github.com/LOOHP/Limbo</url>
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<finalName>${project.artifactId}-${project.version}-1.17</finalName>
|
||||
<finalName>${project.artifactId}-${project.version}-1.17.1</finalName>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
|
|
|||
|
|
@ -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, entityIds.length);
|
||||
for (int entityId : entityIds) {
|
||||
DataTypeIO.writeVarInt(output, entityId);
|
||||
}
|
||||
|
||||
return buffer.toByteArray();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue