1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-04 23:37:49 +01:00

Update FurnaceBrewingHandling.java

This commit is contained in:
montlikadani 2018-08-20 19:32:26 +02:00 committed by GitHub
parent f9d4dc2e7a
commit 105acc8531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,14 +39,14 @@ public class FurnaceBrewingHandling {
int totalf = 0;
int totalb = 0;
if (Jobs.getGCManager().isFurnacesReassign())
if (Jobs.getGCManager().isFurnacesReassign()) {
if (config.contains("Furnace")) {
ConfigurationSection section = config.getConfigurationSection("Furnace");
try {
for (String one : section.getKeys(false)) {
String value = section.getString(one);
List<String> ls = new ArrayList<String>();
List<String> ls = new ArrayList<>();
if (value.contains(";"))
ls.addAll(Arrays.asList(value.split(";")));
else
@ -55,7 +55,7 @@ public class FurnaceBrewingHandling {
if (uuid == null)
continue;
List<blockLoc> blist = new ArrayList<blockLoc>();
List<blockLoc> blist = new ArrayList<>();
for (String oneL : ls) {
blockLoc bl = new blockLoc(oneL);
Block block = bl.getBlock();
@ -76,6 +76,7 @@ public class FurnaceBrewingHandling {
e.printStackTrace();
}
}
}
if (Jobs.getGCManager().isBrewingStandsReassign())
if (config.contains("Brewing")) {
@ -84,7 +85,7 @@ public class FurnaceBrewingHandling {
try {
for (String one : section.getKeys(false)) {
String value = section.getString(one);
List<String> ls = new ArrayList<String>();
List<String> ls = new ArrayList<>();
if (value.contains(";"))
ls.addAll(Arrays.asList(value.split(";")));
else