1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Update Util.java

This commit is contained in:
montlikadani 2018-08-16 17:55:14 +02:00 committed by GitHub
parent 925ee2c478
commit 8ffafc804b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ public class Util {
public Util() {
}
private static HashMap<UUID, String> jobsEditorMap = new HashMap<UUID, String>();
private static HashMap<UUID, String> jobsEditorMap = new HashMap<>();
@SuppressWarnings("deprecation")
public static ItemStack setEntityType(ItemStack is, EntityType type) throws IllegalArgumentException {
@ -86,7 +86,7 @@ public class Util {
distance = 15 * 16;
if (distance < 1)
distance = 1;
ArrayList<Block> blocks = new ArrayList<Block>();
ArrayList<Block> blocks = new ArrayList<>();
Iterator<Block> itr = new BlockIterator(player, distance);
while (itr.hasNext()) {
Block block = itr.next();