mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Read sign on main thread
This commit is contained in:
parent
3c110bb125
commit
47915b8b86
1 changed files with 7 additions and 2 deletions
|
@ -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 a new issue