Fly should not be enabled when flying permission is disabled.

This commit is contained in:
UnknownShadow200 2015-11-08 18:40:07 +11:00
parent f1a7a0e513
commit 0ed701e438
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ namespace ClassicalSharp {
for( int i = 0; i < hotbarCount; i++ ) { for( int i = 0; i < hotbarCount; i++ ) {
int x = X + i * blockSize; int x = X + i * blockSize;
IsometricBlockDrawer.Draw( game, (byte)game.Inventory.Hotbar[i], 10, IsometricBlockDrawer.Draw( game, (byte)game.Inventory.Hotbar[i], 10,
x + blockSize / 2, game.Height - 19 ); x + blockSize / 2, game.Height - blockSize / 2 );
if( i == game.Inventory.HeldBlockIndex ) if( i == game.Inventory.HeldBlockIndex )
selectedBlock.X1 = x; selectedBlock.X1 = x;
} }

View File

@ -237,7 +237,7 @@ namespace ClassicalSharp {
/// <summary> Disables any hacks if their respective CanHackX value is set to false. </summary> /// <summary> Disables any hacks if their respective CanHackX value is set to false. </summary>
public void CheckHacksConsistency() { public void CheckHacksConsistency() {
if( !CanFly ) flying = false; if( !CanFly ) { flying = false; flyingDown = false; flyingUp = false; }
if( !CanNoclip ) noClip = false; if( !CanNoclip ) noClip = false;
if( !CanSpeed) canSpeed = false; if( !CanSpeed) canSpeed = false;
if( !CanPushbackBlocks ) PushbackBlockPlacing = false; if( !CanPushbackBlocks ) PushbackBlockPlacing = false;