mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Read sign on main thread
This commit is contained in:
parent
3c110bb125
commit
47915b8b86
@ -2031,9 +2031,14 @@ public class Plot {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Location loc = this.getManager().getSignLoc(this.area, this);
|
||||
final Location loc = this.getManager().getSignLoc(this.area, this);
|
||||
ChunkManager.manager.loadChunk(loc.getWorld(), loc.getChunkLoc(), false);
|
||||
String[] lines = WorldUtil.IMP.getSign(loc);
|
||||
String[] lines = TaskManager.IMP.sync(new RunnableVal<String[]>() {
|
||||
@Override
|
||||
public void run(String[] value) {
|
||||
this.value = WorldUtil.IMP.getSign(loc);
|
||||
}
|
||||
});
|
||||
if (lines == null) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user