mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
chore: add back emergencySave
This commit is contained in:
parent
61a3afcca3
commit
ec87b5c424
|
|
@ -2143,6 +2143,14 @@ void Minecraft::run_middle() {
|
||||||
|
|
||||||
void Minecraft::run_end() { destroy(); }
|
void Minecraft::run_end() { destroy(); }
|
||||||
|
|
||||||
|
void Minecraft::emergencySave() {
|
||||||
|
// 4J - lots of try/catches removed here, and garbage collector things
|
||||||
|
levelRenderer->clear();
|
||||||
|
AABB::clearPool();
|
||||||
|
Vec3::clearPool();
|
||||||
|
setLevel(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
void Minecraft::renderFpsMeter(__int64 tickTime) {
|
void Minecraft::renderFpsMeter(__int64 tickTime) {
|
||||||
int nsPer60Fps = 1000000000l / 60;
|
int nsPer60Fps = 1000000000l / 60;
|
||||||
if (lastTimer == -1) {
|
if (lastTimer == -1) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue