From 132e895d5361b318948ef603d890b1146477c0a2 Mon Sep 17 00:00:00 2001 From: sekwah Date: Sat, 10 Mar 2018 14:04:30 +0000 Subject: [PATCH] Updated some info on hashmaps --- .../advancedportals/core/api/managers/PortalManager.java | 6 +++--- src/com/sekwah/advancedportals/core/util/DataStorage.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java index fd710913..78e12447 100644 --- a/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java +++ b/src/com/sekwah/advancedportals/core/api/managers/PortalManager.java @@ -31,10 +31,10 @@ public class PortalManager { /** * Tracks the name of portal a player has selected */ - private HashMap selectedPortal = new HashMap(); + private HashMap selectedPortal = new HashMap<>(); - private HashMap portalSelectorLeftClick = new HashMap(); - private HashMap portalSelectorRightClick = new HashMap(); + private HashMap portalSelectorLeftClick = new HashMap<>(); + private HashMap portalSelectorRightClick = new HashMap<>(); /** * Contains all the data for the portals diff --git a/src/com/sekwah/advancedportals/core/util/DataStorage.java b/src/com/sekwah/advancedportals/core/util/DataStorage.java index ae3e20b8..77044449 100644 --- a/src/com/sekwah/advancedportals/core/util/DataStorage.java +++ b/src/com/sekwah/advancedportals/core/util/DataStorage.java @@ -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; }