mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-06 16:27:59 +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 totalf = 0;
|
||||||
int totalb = 0;
|
int totalb = 0;
|
||||||
|
|
||||||
if (Jobs.getGCManager().isFurnacesReassign())
|
if (Jobs.getGCManager().isFurnacesReassign()) {
|
||||||
if (config.contains("Furnace")) {
|
if (config.contains("Furnace")) {
|
||||||
ConfigurationSection section = config.getConfigurationSection("Furnace");
|
ConfigurationSection section = config.getConfigurationSection("Furnace");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (String one : section.getKeys(false)) {
|
for (String one : section.getKeys(false)) {
|
||||||
String value = section.getString(one);
|
String value = section.getString(one);
|
||||||
List<String> ls = new ArrayList<String>();
|
List<String> ls = new ArrayList<>();
|
||||||
if (value.contains(";"))
|
if (value.contains(";"))
|
||||||
ls.addAll(Arrays.asList(value.split(";")));
|
ls.addAll(Arrays.asList(value.split(";")));
|
||||||
else
|
else
|
||||||
@ -55,7 +55,7 @@ public class FurnaceBrewingHandling {
|
|||||||
|
|
||||||
if (uuid == null)
|
if (uuid == null)
|
||||||
continue;
|
continue;
|
||||||
List<blockLoc> blist = new ArrayList<blockLoc>();
|
List<blockLoc> blist = new ArrayList<>();
|
||||||
for (String oneL : ls) {
|
for (String oneL : ls) {
|
||||||
blockLoc bl = new blockLoc(oneL);
|
blockLoc bl = new blockLoc(oneL);
|
||||||
Block block = bl.getBlock();
|
Block block = bl.getBlock();
|
||||||
@ -76,6 +76,7 @@ public class FurnaceBrewingHandling {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Jobs.getGCManager().isBrewingStandsReassign())
|
if (Jobs.getGCManager().isBrewingStandsReassign())
|
||||||
if (config.contains("Brewing")) {
|
if (config.contains("Brewing")) {
|
||||||
@ -84,7 +85,7 @@ public class FurnaceBrewingHandling {
|
|||||||
try {
|
try {
|
||||||
for (String one : section.getKeys(false)) {
|
for (String one : section.getKeys(false)) {
|
||||||
String value = section.getString(one);
|
String value = section.getString(one);
|
||||||
List<String> ls = new ArrayList<String>();
|
List<String> ls = new ArrayList<>();
|
||||||
if (value.contains(";"))
|
if (value.contains(";"))
|
||||||
ls.addAll(Arrays.asList(value.split(";")));
|
ls.addAll(Arrays.asList(value.split(";")));
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user