Reset selector on error.
This commit is contained in:
parent
48c6bfe21c
commit
06f61208f3
@ -628,8 +628,12 @@ public class LocalSession {
|
|||||||
*/
|
*/
|
||||||
public RegionSelector getRegionSelector(World world) {
|
public RegionSelector getRegionSelector(World world) {
|
||||||
checkNotNull(world);
|
checkNotNull(world);
|
||||||
if (selector.getWorld() == null || !selector.getWorld().equals(world)) {
|
try {
|
||||||
selector.setWorld(world);
|
if (selector.getWorld() == null || !selector.getWorld().equals(world)) {
|
||||||
|
selector.setWorld(world);
|
||||||
|
selector.clear();
|
||||||
|
}
|
||||||
|
} catch (Throwable ignore) {
|
||||||
selector.clear();
|
selector.clear();
|
||||||
}
|
}
|
||||||
return selector;
|
return selector;
|
||||||
|
Loading…
Reference in New Issue
Block a user