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>
|
<groupId>com.loohp</groupId>
|
||||||
<artifactId>Limbo</artifactId>
|
<artifactId>Limbo</artifactId>
|
||||||
<name>Limbo</name>
|
<name>Limbo</name>
|
||||||
<version>0.5.1-ALPHA</version>
|
<version>0.5.2-ALPHA</version>
|
||||||
|
|
||||||
<description>Standalone Limbo Minecraft Server.</description>
|
<description>Standalone Limbo Minecraft Server.</description>
|
||||||
<url>https://github.com/LOOHP/Limbo</url>
|
<url>https://github.com/LOOHP/Limbo</url>
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<finalName>${project.artifactId}-${project.version}-1.17</finalName>
|
<finalName>${project.artifactId}-${project.version}-1.17.1</finalName>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,8 @@ public class Limbo {
|
||||||
|
|
||||||
//===========================
|
//===========================
|
||||||
|
|
||||||
public final String serverImplementationVersion = "1.17";
|
public final String serverImplementationVersion = "1.17.1";
|
||||||
public final int serverImplmentationProtocol = 755;
|
public final int serverImplmentationProtocol = 756;
|
||||||
public final String limboImplementationVersion;
|
public final String limboImplementationVersion;
|
||||||
|
|
||||||
private AtomicBoolean isRunning;
|
private AtomicBoolean isRunning;
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ import com.loohp.limbo.utils.DataTypeIO;
|
||||||
|
|
||||||
public class PacketPlayOutEntityDestroy extends PacketOut {
|
public class PacketPlayOutEntityDestroy extends PacketOut {
|
||||||
|
|
||||||
private int entityId;
|
private int[] entityIds;
|
||||||
|
|
||||||
public PacketPlayOutEntityDestroy(int entityId) {
|
public PacketPlayOutEntityDestroy(int... entityIds) {
|
||||||
this.entityId = entityId;
|
this.entityIds = entityIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEntityId() {
|
public int[] getEntityIds() {
|
||||||
return entityId;
|
return entityIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -24,7 +24,10 @@ public class PacketPlayOutEntityDestroy extends PacketOut {
|
||||||
|
|
||||||
DataOutputStream output = new DataOutputStream(buffer);
|
DataOutputStream output = new DataOutputStream(buffer);
|
||||||
output.writeByte(Packet.getPlayOut().get(getClass()));
|
output.writeByte(Packet.getPlayOut().get(getClass()));
|
||||||
|
DataTypeIO.writeVarInt(output, entityIds.length);
|
||||||
|
for (int entityId : entityIds) {
|
||||||
DataTypeIO.writeVarInt(output, entityId);
|
DataTypeIO.writeVarInt(output, entityId);
|
||||||
|
}
|
||||||
|
|
||||||
return buffer.toByteArray();
|
return buffer.toByteArray();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue