Updated some info on hashmaps

This commit is contained in:
sekwah 2018-03-10 14:04:30 +00:00
parent 420139551e
commit dbfead2d49
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
*/
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> portalSelectorRightClick = new HashMap();
private HashMap<String, PortalLocation> portalSelectorLeftClick = new HashMap<>();
private HashMap<String, PortalLocation> portalSelectorRightClick = new HashMap<>();
/**
* Contains all the data for the portals

View File

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