Updated some info on hashmaps

This commit is contained in:
sekwah 2018-03-10 14:04:30 +00:00 committed by Sekwah
parent fb6700c667
commit 132e895d53
2 changed files with 4 additions and 4 deletions

View File

@ -31,10 +31,10 @@ public class PortalManager {
/** /**
* Tracks the name of portal a player has selected * Tracks the name of portal a player has selected
*/ */
private HashMap<String, String> selectedPortal = new HashMap(); private HashMap<String, String> selectedPortal = new HashMap<>();
private HashMap<String, PortalLocation> portalSelectorLeftClick = new HashMap(); private HashMap<String, PortalLocation> portalSelectorLeftClick = new HashMap<>();
private HashMap<String, PortalLocation> portalSelectorRightClick = new HashMap(); private HashMap<String, PortalLocation> portalSelectorRightClick = new HashMap<>();
/** /**
* Contains all the data for the portals * Contains all the data for the portals

View File

@ -83,7 +83,7 @@ public class DataStorage {
} }
if (!outFile.exists() || overwrite) { if (!outFile.exists() || overwrite) {
try { try {
InputStream inputStream = DataStorage.class.getClassLoader().getResourceAsStream(fileLoc); InputStream inputStream = DataStorage.class.getResourceAsStream(fileLoc);
if(inputStream == null) { if(inputStream == null) {
return false; return false;
} }