mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Fix unhandled exception
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
75964f87b4
commit
b60b785dcd
@ -1196,7 +1196,11 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
// Cannot load chunk (auto load is not enabled)
|
||||
return;
|
||||
}
|
||||
chunk.addViewer(this);
|
||||
try {
|
||||
chunk.addViewer(this);
|
||||
} catch (Exception e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user