Fix test file name

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-10-26 09:40:44 +02:00
parent 632922bce5
commit 46f3fede8a

View File

@ -19,8 +19,7 @@ import static org.junit.jupiter.api.Assertions.*;
@EnvTest
public class PlayerRespawnChunkTest {
public class PlayerRespawnChunkIntegrationTest {
@Test
public void testChunkUnloadsOnRespawn(Env env) {
@ -64,7 +63,7 @@ public class PlayerRespawnChunkTest {
Set<ChunkDataPacket> duplicateCheck = new HashSet<>();
int chunkLoads = ChunkUtils.getChunkCount(MinecraftServer.getChunkViewDistance());
loadChunkTracker.assertCount(chunkLoads);
for(ChunkDataPacket packet : dataPacketList) {
for (ChunkDataPacket packet : dataPacketList) {
assertFalse(duplicateCheck.contains(packet));
duplicateCheck.add(packet);
assertTrue(Math.abs(packet.chunkX()) <= MinecraftServer.getChunkViewDistance() && Math.abs(packet.chunkZ()) <= MinecraftServer.getChunkViewDistance());