Fixed bow damage in creative
Also reverted indenting change
This commit is contained in:
parent
96cd7d65a3
commit
f38375a2ec
@ -318,7 +318,7 @@ void cPlayer::SetTouchGround(bool a_bTouchGround)
|
||||
(BlockType == E_BLOCK_STATIONARY_WATER) ||
|
||||
(BlockType == E_BLOCK_LADDER) ||
|
||||
(BlockType == E_BLOCK_VINES)
|
||||
)
|
||||
)
|
||||
{
|
||||
m_LastGroundHeight = (float)GetPosY();
|
||||
}
|
||||
|
@ -71,7 +71,11 @@ public:
|
||||
return;
|
||||
}
|
||||
a_Player->GetWorld()->BroadcastSpawnEntity(*Arrow);
|
||||
a_Player->UseEquippedItem();
|
||||
|
||||
if (!a_Player->IsGameModeCreative())
|
||||
{
|
||||
a_Player->UseEquippedItem();
|
||||
}
|
||||
}
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user