Move region check to loading

This commit is contained in:
Tyler Hardy
2018-03-15 21:29:25 -05:00
parent a1fe89f24f
commit 21786dc1bf

View File

@@ -152,8 +152,6 @@ public class HerbiboarPlugin extends Plugin
currentTrail = null; currentTrail = null;
currentPath = -1; currentPath = -1;
//TODO: REGION CHECK
// Get trail data // Get trail data
for (HerbiboarTrail trail : HerbiboarTrail.values()) for (HerbiboarTrail trail : HerbiboarTrail.values())
{ {
@@ -213,10 +211,11 @@ public class HerbiboarPlugin extends Plugin
case HOPPING: case HOPPING:
case LOGGING_IN: case LOGGING_IN:
resetTrailData(); resetTrailData();
inHerbiboarArea = checkArea();
break; break;
case LOADING: case LOADING:
clearCache(); clearCache();
inHerbiboarArea = checkArea();
break;
default: default:
break; break;
} }