From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Samsuik <40902469+Samsuik@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:21:37 +0000 Subject: [PATCH] Option to configure entity water sensitivity diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java index f1560f5139b3090057950b41c4374ded4c50b3e2..e7603a67c985ff105a8a4e16179fe33fe26f5b22 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java @@ -3730,7 +3730,7 @@ public abstract class LivingEntity extends Entity implements Attackable { // Paper end - Add EntityMoveEvent world = this.level(); if (world instanceof ServerLevel worldserver) { - if (this.isSensitiveToWater() && this.isInWaterRainOrBubble()) { + if (this.level().sakuraConfig().entity.waterSensitivity && this.isSensitiveToWater() && this.isInWaterRainOrBubble()) { // Sakura - configure entity water sensitivity this.hurtServer(worldserver, this.damageSources().drown(), 1.0F); } }