mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-23 07:13:18 +00:00
minecart tnt fix
This commit is contained in:
parent
a282314267
commit
6fe251b2ec
|
|
@ -595,6 +595,7 @@ void ServerPlayer::die(DamageSource *source)
|
|||
bool ServerPlayer::hurt(DamageSource *dmgSource, float dmg)
|
||||
{
|
||||
if (isInvulnerable()) return false;
|
||||
if (gameMode == nullptr||gameMode->isCreative()) return false;
|
||||
|
||||
// 4J: Not relevant to console servers
|
||||
// Allow falldamage on dedicated pvpservers -- so people cannot cheat their way out of 'fall traps'
|
||||
|
|
|
|||
|
|
@ -56,11 +56,10 @@ bool ServerPlayerGameMode::isSurvival()
|
|||
return gameModeForPlayer->isSurvival();
|
||||
}
|
||||
|
||||
bool ServerPlayerGameMode::isCreative()
|
||||
{
|
||||
return gameModeForPlayer->isCreative();
|
||||
bool ServerPlayerGameMode::isCreative() {
|
||||
if (!this || !gameModeForPlayer) return false;
|
||||
return gameModeForPlayer->isCreative();
|
||||
}
|
||||
|
||||
void ServerPlayerGameMode::updateGameMode(GameType *gameType)
|
||||
{
|
||||
if (gameModeForPlayer == GameType::NOT_SET)
|
||||
|
|
|
|||
|
|
@ -1384,6 +1384,7 @@ void Player::setDefaultHeadHeight()
|
|||
bool Player::hurt(DamageSource *source, float dmg)
|
||||
{
|
||||
if (isInvulnerable()) return false;
|
||||
|
||||
if ( hasInvulnerablePrivilege() || (abilities.invulnerable && !source->isBypassInvul()) ) return false;
|
||||
|
||||
// 4J-JEV: Fix for PSVita: #3987 - [IN GAME] The user can take damage/die, when attempting to re-enter fly mode when falling from a height.
|
||||
|
|
|
|||
Loading…
Reference in a new issue