#1480: Fix PerMaterialTest#isEdible test running for legacy materials

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2024-09-20 07:23:06 +10:00
parent 52e03b47a2
commit 98e7025512

View file

@ -62,7 +62,7 @@ public class PerMaterialTest extends AbstractTestingBase {
}
@ParameterizedTest
@EnumSource(value = Material.class, names = ".LEGACY_.*", mode = EnumSource.Mode.MATCH_NONE)
@EnumSource(value = Material.class, names = "LEGACY_.*", mode = EnumSource.Mode.MATCH_NONE)
public void isEdible(Material material) {
if (material.isBlock()) {
assertFalse(material.isEdible());