1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-06 16:27:59 +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() { public Util() {
} }
private static HashMap<UUID, String> jobsEditorMap = new HashMap<UUID, String>(); private static HashMap<UUID, String> jobsEditorMap = new HashMap<>();
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public static ItemStack setEntityType(ItemStack is, EntityType type) throws IllegalArgumentException { public static ItemStack setEntityType(ItemStack is, EntityType type) throws IllegalArgumentException {
@ -86,7 +86,7 @@ public class Util {
distance = 15 * 16; distance = 15 * 16;
if (distance < 1) if (distance < 1)
distance = 1; distance = 1;
ArrayList<Block> blocks = new ArrayList<Block>(); ArrayList<Block> blocks = new ArrayList<>();
Iterator<Block> itr = new BlockIterator(player, distance); Iterator<Block> itr = new BlockIterator(player, distance);
while (itr.hasNext()) { while (itr.hasNext()) {
Block block = itr.next(); Block block = itr.next();