Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
Fixes compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Aug 18, 2020
1 parent 92f6174 commit 2aec48a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ public void onProjectileHit(EntityInteractEvent e) {
private boolean isPressurePlate(Material material) {
switch(material) {
case STONE_PRESSURE_PLATE:
case POLISHED_BLACKSTONE_PRESSURE_PLATE:
// case POLISHED_BLACKSTONE_PRESSURE_PLATE:
case ACACIA_PRESSURE_PLATE:
case BIRCH_PRESSURE_PLATE:
case CRIMSON_PRESSURE_PLATE:
// case CRIMSON_PRESSURE_PLATE:
case DARK_OAK_PRESSURE_PLATE:
case HEAVY_WEIGHTED_PRESSURE_PLATE:
case JUNGLE_PRESSURE_PLATE:
case LIGHT_WEIGHTED_PRESSURE_PLATE:
case OAK_PRESSURE_PLATE:
case SPRUCE_PRESSURE_PLATE:
case WARPED_PRESSURE_PLATE:
// case WARPED_PRESSURE_PLATE:
return true;
default:
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ private void setFlags() {
when(Tag.ANVIL.isTagged(Material.DAMAGED_ANVIL)).thenReturn(true);
clickedBlocks.put(Material.BEACON, Flags.BEACON);
clickedBlocks.put(Material.WHITE_BED, Flags.BED);
when(Tag.BEDS.isTagged(Material.WHITE_BED)).thenReturn(true);
// when(Tag.BEDS.isTagged(Material.WHITE_BED)).thenReturn(true);
clickedBlocks.put(Material.BREWING_STAND, Flags.BREWING);
clickedBlocks.put(Material.CAULDRON, Flags.BREWING);
// clickedBlocks.put(Material.BARREL, Flags.CONTAINER);
clickedBlocks.put(Material.CHEST, Flags.CONTAINER);
clickedBlocks.put(Material.CHEST_MINECART, Flags.CONTAINER);
clickedBlocks.put(Material.TRAPPED_CHEST, Flags.CONTAINER);
clickedBlocks.put(Material.SHULKER_BOX, Flags.CONTAINER);
when(Tag.SHULKER_BOXES.isTagged(Material.SHULKER_BOX)).thenReturn(true);
// when(Tag.SHULKER_BOXES.isTagged(Material.SHULKER_BOX)).thenReturn(true);
clickedBlocks.put(Material.FLOWER_POT, Flags.CONTAINER);
// clickedBlocks.put(Material.COMPOSTER, Flags.CONTAINER);
clickedBlocks.put(Material.DISPENSER, Flags.DISPENSER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void setUp() {
when(Util.stripSpaceAfterColorCodes(anyString())).thenCallRealMethod();

// Tags
when(Tag.PRESSURE_PLATES.isTagged(any(Material.class))).thenReturn(true);
// when(Tag.PRESSURE_PLATES.isTagged(any(Material.class))).thenReturn(true);
when(Tag.WOODEN_BUTTONS.isTagged(any(Material.class))).thenReturn(true);
}

Expand All @@ -224,7 +224,7 @@ public void testOnPlayerInteractNotPhysical() {
@Test
public void testOnPlayerInteractWrongMaterial() {
when(clickedBlock.getType()).thenReturn(Material.STONE);
when(Tag.PRESSURE_PLATES.isTagged(clickedBlock.getType())).thenReturn(false);
// when(Tag.PRESSURE_PLATES.isTagged(clickedBlock.getType())).thenReturn(false);
PlayerInteractEvent e = new PlayerInteractEvent(player, Action.PHYSICAL, item, clickedBlock, BlockFace.UP);
new PhysicalInteractionListener().onPlayerInteract(e);
assertEquals(Result.ALLOW, e.useInteractedBlock());
Expand Down

0 comments on commit 2aec48a

Please sign in to comment.