Skip to content

Commit d5922aa

Browse files
authored
Fix: fix type error (#65) (#66)
2 parents d909d9a + be74f9a commit d5922aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/github/nutt1101/event/HitEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public Chunk getChunkFromLocation(Location location) {
388388

389389
public boolean townyCheck(Player player, Location location) {
390390
if (!CatchBall.hasTowny) { return true; }
391-
boolean bBuild = PlayerCacheUtil.getCachePermission(player, location, Material.valueOf("dirt"), TownyPermission.ActionType.BUILD);
391+
boolean bBuild = PlayerCacheUtil.getCachePermission(player, location, Material.DIRT, TownyPermission.ActionType.BUILD);
392392
return bBuild;
393393
}
394394

@@ -411,4 +411,4 @@ public String getIsCustomEntity(Entity hitEntity) {
411411
return checkCustom;
412412
}
413413

414-
}
414+
}

0 commit comments

Comments
 (0)