File tree Expand file tree Collapse file tree
src/main/java/dev/dfonline/codeclient/location Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public abstract class Plot extends Location {
3333 protected Boolean hasBuild ;
3434 protected Boolean hasDev ;
3535 protected Size size ;
36- protected HashMap <BlockPos , SignText > lineStarterCache = new HashMap <>();
36+ protected @ Nullable HashMap <BlockPos , SignText > lineStarterCache = new HashMap <>();
3737 protected HashMap <BlockPos , SignText > actionCache = new HashMap <>();
3838
3939 public void setOrigin (int x , int z ) {
@@ -198,7 +198,7 @@ public HashMap<BlockPos, SignText> scanForActionSigns(Pattern scan) {
198198 }
199199
200200 public void clearLineStarterCache () {
201- lineStarterCache . clear () ;
201+ lineStarterCache = null ;
202202 }
203203
204204 private void fillLineStarterCache () {
@@ -207,7 +207,7 @@ private void fillLineStarterCache() {
207207 }
208208
209209 public Map <BlockPos , SignText > getLineStartCache () {
210- if (lineStarterCache . isEmpty () ) fillLineStarterCache ();
210+ if (lineStarterCache == null ) fillLineStarterCache ();
211211 return lineStarterCache ;
212212 }
213213
You can’t perform that action at this time.
0 commit comments