We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eafe23 commit f57bd86Copy full SHA for f57bd86
1 file changed
purpur-server/minecraft-patches/sources/net/minecraft/world/entity/Entity.java.patch
@@ -52,7 +52,7 @@
52
this.type = type;
53
this.level = level;
54
this.dimensions = type.getDimensions();
55
-+ this.maxAirTicks = level == null ? Entity.TOTAL_AIR_SUPPLY : this.level.purpurConfig.drowningAirTicks; // Purpur - Drowning Settings
++ this.maxAirTicks = level == null || this.getDefaultMaxAirSupply() != Entity.TOTAL_AIR_SUPPLY ? this.getDefaultMaxAirSupply() : this.level.purpurConfig.drowningAirTicks; // Purpur - Drowning Settings
56
+ // Purpur start - Add toggle for RNG manipulation
57
+ this.random = level == null || level.purpurConfig.entitySharedRandom ? SHARED_RANDOM : RandomSource.create();
58
+ this.uuid = Mth.createInsecureUUID(this.random);
0 commit comments