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:
parent
f9d4dc2e7a
commit
105acc8531
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user