mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-14 14:45:49 +01:00
Fix test compile
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
cb679b5493
commit
2d38bef6c0
@ -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);
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user