mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Update FurnaceBrewingHandling.java
This commit is contained in:
parent
f7efd20525
commit
138f8bfeb3
@ -26,8 +26,8 @@ public class FurnaceBrewingHandling {
|
|||||||
public FurnaceBrewingHandling() {
|
public FurnaceBrewingHandling() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static HashMap<UUID, List<blockLoc>> furnaceMap = new HashMap<UUID, List<blockLoc>>();
|
static HashMap<UUID, List<blockLoc>> furnaceMap = new HashMap<>();
|
||||||
static HashMap<UUID, List<blockLoc>> brewingMap = new HashMap<UUID, List<blockLoc>>();
|
static HashMap<UUID, List<blockLoc>> brewingMap = new HashMap<>();
|
||||||
|
|
||||||
public static void load() {
|
public static void load() {
|
||||||
YmlMaker f = new YmlMaker(Jobs.getInstance(), "furnaceBrewingStands.yml");
|
YmlMaker f = new YmlMaker(Jobs.getInstance(), "furnaceBrewingStands.yml");
|
||||||
@ -94,7 +94,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();
|
||||||
@ -284,7 +284,7 @@ public class FurnaceBrewingHandling {
|
|||||||
|
|
||||||
List<blockLoc> ls = furnaceMap.get(player.getUniqueId());
|
List<blockLoc> ls = furnaceMap.get(player.getUniqueId());
|
||||||
if (ls == null)
|
if (ls == null)
|
||||||
ls = new ArrayList<blockLoc>();
|
ls = new ArrayList<>();
|
||||||
ls.add(new blockLoc(block.getLocation()));
|
ls.add(new blockLoc(block.getLocation()));
|
||||||
furnaceMap.put(player.getUniqueId(), ls);
|
furnaceMap.put(player.getUniqueId(), ls);
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ public class FurnaceBrewingHandling {
|
|||||||
|
|
||||||
List<blockLoc> ls = brewingMap.get(player.getUniqueId());
|
List<blockLoc> ls = brewingMap.get(player.getUniqueId());
|
||||||
if (ls == null)
|
if (ls == null)
|
||||||
ls = new ArrayList<blockLoc>();
|
ls = new ArrayList<>();
|
||||||
ls.add(new blockLoc(block.getLocation()));
|
ls.add(new blockLoc(block.getLocation()));
|
||||||
brewingMap.put(player.getUniqueId(), ls);
|
brewingMap.put(player.getUniqueId(), ls);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user