mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +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)
|
// Cannot load chunk (auto load is not enabled)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
chunk.addViewer(this);
|
try {
|
||||||
|
chunk.addViewer(this);
|
||||||
|
} catch (Exception e) {
|
||||||
|
MinecraftServer.getExceptionManager().handleException(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user