Skip to content

Commit f57bd86

Browse files
author
Amine Kacimi
authored
Fix axolotl dying after 300 ticks (#1769)
1 parent 0eafe23 commit f57bd86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

purpur-server/minecraft-patches/sources/net/minecraft/world/entity/Entity.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
this.type = type;
5353
this.level = level;
5454
this.dimensions = type.getDimensions();
55-
+ this.maxAirTicks = level == null ? Entity.TOTAL_AIR_SUPPLY : this.level.purpurConfig.drowningAirTicks; // Purpur - Drowning Settings
55+
+ this.maxAirTicks = level == null || this.getDefaultMaxAirSupply() != Entity.TOTAL_AIR_SUPPLY ? this.getDefaultMaxAirSupply() : this.level.purpurConfig.drowningAirTicks; // Purpur - Drowning Settings
5656
+ // Purpur start - Add toggle for RNG manipulation
5757
+ this.random = level == null || level.purpurConfig.entitySharedRandom ? SHARED_RANDOM : RandomSource.create();
5858
+ this.uuid = Mth.createInsecureUUID(this.random);

0 commit comments

Comments
 (0)