Update enums to latest naming

This commit is contained in:
tastybento 2025-01-01 11:51:35 -08:00
parent 5e8e05c815
commit 07969c0158
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ public class BreakBlocksListenerTest extends AbstractCommonSetup {
when(island.isAllowed(any(), any())).thenReturn(false); when(island.isAllowed(any(), any())).thenReturn(false);
Vehicle vehicle = mock(Vehicle.class); Vehicle vehicle = mock(Vehicle.class);
when(vehicle.getLocation()).thenReturn(location); when(vehicle.getLocation()).thenReturn(location);
when(vehicle.getType()).thenReturn(EntityType.BOAT); when(vehicle.getType()).thenReturn(EntityType.ACACIA_BOAT);
VehicleDamageEvent e = new VehicleDamageEvent(vehicle, mockPlayer, 10); VehicleDamageEvent e = new VehicleDamageEvent(vehicle, mockPlayer, 10);
bbl.onVehicleDamageEvent(e); bbl.onVehicleDamageEvent(e);
assertTrue(e.isCancelled()); assertTrue(e.isCancelled());

View File

@ -182,7 +182,7 @@ public class PlayersManagerTest {
when(p.getUniqueId()).thenReturn(uuid); when(p.getUniqueId()).thenReturn(uuid);
AttributeInstance at = mock(AttributeInstance.class); AttributeInstance at = mock(AttributeInstance.class);
when(at.getValue()).thenReturn(20D); when(at.getValue()).thenReturn(20D);
when(p.getAttribute(Attribute.GENERIC_MAX_HEALTH)).thenReturn(at); when(p.getAttribute(Attribute.MAX_HEALTH)).thenReturn(at);
when(p.getName()).thenReturn("tastybento"); when(p.getName()).thenReturn("tastybento");
User.getInstance(p); User.getInstance(p);