aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Minecraft.cpp
diff options
context:
space:
mode:
authorrtm516 <rtm516@users.noreply.github.com>2026-03-04 04:31:47 +0000
committerGitHub <noreply@github.com>2026-03-04 12:31:47 +0800
commitb1b622c303a40a5533962fc63559a0346cfbca04 (patch)
treec5c064b7f9c4d5047f35d6a6a28256d7ce989d17 /Minecraft.Client/Minecraft.cpp
parentf216abca4217b3fe4497d5aea5e4a3d6cf679b46 (diff)
Fix overlapping debug menus and screens (#294)
* Fix overlapping debug menus and screens Also resolves a formatting issue with clang-format * Update readme
Diffstat (limited to 'Minecraft.Client/Minecraft.cpp')
-rw-r--r--Minecraft.Client/Minecraft.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp
index 164417ab..bd75a61a 100644
--- a/Minecraft.Client/Minecraft.cpp
+++ b/Minecraft.Client/Minecraft.cpp
@@ -3618,8 +3618,6 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_RENDER_DEBUG)) )
{
#ifndef _CONTENT_PACKAGE
-
- options->renderDebug = !options->renderDebug;
#ifdef _XBOX
app.EnableDebugOverlay(options->renderDebug,iPad);
#else
@@ -3629,13 +3627,11 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
#endif
}
- if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_SPAWN_CREEPER)) && app.GetMobsDontAttackEnabled())
- {
- //shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>(Creeper::_class->newInstance( level ));
- //shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>(Wolf::_class->newInstance( level ));
- shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>(shared_ptr<Spider>(new Spider( level )));
- mob->moveTo(player->x+1, player->y, player->z+1, level->random->nextFloat() * 360, 0);
- level->addEntity(mob);
+ if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_SPAWN_CREEPER)))
+ {
+#ifndef _CONTENT_PACKAGE
+ options->renderDebug = !options->renderDebug;
+#endif
}
}