Fix test compile

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-06-10 02:39:06 +02:00
parent cb679b5493
commit 2d38bef6c0
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package net.minestom.server.entity;
import net.minestom.server.api.Env;
import net.minestom.server.api.EnvTest;
import net.minestom.server.coordinate.Pos;
import net.minestom.server.network.packet.server.play.SpawnLivingEntityPacket;
import net.minestom.server.network.packet.server.play.SpawnEntityPacket;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
@ -131,7 +131,7 @@ public class EntityViewIntegrationTest {
var vehicle = new Entity(EntityType.ZOMBIE);
var passenger = new Entity(EntityType.ZOMBIE);
var tracker = connection.trackIncoming(SpawnLivingEntityPacket.class);
var tracker = connection.trackIncoming(SpawnEntityPacket.class);
vehicle.setInstance(instance, new Pos(0, 40, 0)).join();
vehicle.addPassenger(passenger);

View File

@ -56,7 +56,7 @@ public class PacketWriteReadTest {
//SERVER_PACKETS.add(new EncryptionRequestPacket("server", generateByteArray(16), generateByteArray(16)));
SERVER_PACKETS.add(new LoginDisconnectPacket(COMPONENT));
//SERVER_PACKETS.add(new LoginPluginRequestPacket(5, "id", generateByteArray(16)));
SERVER_PACKETS.add(new LoginSuccessPacket(UUID.randomUUID(), "TheMode911"));
SERVER_PACKETS.add(new LoginSuccessPacket(UUID.randomUUID(), "TheMode911", 0));
SERVER_PACKETS.add(new SetCompressionPacket(256));
// Play
SERVER_PACKETS.add(new AcknowledgeBlockChangePacket(0));