From 6d452f1f7f7675383c1c0d62a878c4b24a7c04d6 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 19 Mar 2021 15:21:54 -0700 Subject: [PATCH] Fix VanillaMobGoalTest#testBukkitMap (#5390) --- Spigot-Server-Patches/Implement-Mob-Goal-API.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Implement-Mob-Goal-API.patch b/Spigot-Server-Patches/Implement-Mob-Goal-API.patch index e00f77dc31..7aac3dcedd 100644 --- a/Spigot-Server-Patches/Implement-Mob-Goal-API.patch +++ b/Spigot-Server-Patches/Implement-Mob-Goal-API.patch @@ -1074,6 +1074,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.util.ArrayList; ++import java.util.Collections; +import java.util.List; +import java.util.stream.Collectors; + @@ -1150,9 +1151,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + @Test + public void testBukkitMap() { + List> classes; -+ try (ScanResult scanResult = new ClassGraph().enableAllInfo().whitelistPackages("net.minecraft.server").scan()) { -+ classes = scanResult.getSubclasses("net.minecraft.server.EntityInsentient").loadClasses(); ++ try (ScanResult scanResult = new ClassGraph().enableAllInfo().whitelistPackages("net.minecraft.world.entity").scan()) { ++ classes = scanResult.getSubclasses("net.minecraft.world.entity.EntityInsentient").loadClasses(); + } ++ Assert.assertNotEquals("There are supposed to be more than 0 entity types!", Collections.emptyList(), classes); + + boolean shouldFail = false; + for (Class nmsClass : classes) {