mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Fly should not be enabled when flying permission is disabled.
This commit is contained in:
parent
f1a7a0e513
commit
0ed701e438
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user