mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Exempt players in creative/spectator from nether ceiling damage (#8427)
This commit is contained in:
parent
9e43d68e57
commit
3ef916da77
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ // Paper start - Configurable nether ceiling damage
|
||||
+ if (this.getY() < (double) (this.level.getMinBuildHeight() - 64) || (this.level.getWorld().getEnvironment() == org.bukkit.World.Environment.NETHER
|
||||
+ && level.paperConfig().environment.netherCeilingVoidDamageHeight > 0
|
||||
+ && this.getY() >= this.level.paperConfig().environment.netherCeilingVoidDamageHeight)) {
|
||||
+ && this.getY() >= this.level.paperConfig().environment.netherCeilingVoidDamageHeight
|
||||
+ && (!(this instanceof Player player) || !player.getAbilities().invulnerable))) {
|
||||
+ // Paper end
|
||||
this.outOfWorld();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue