mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-27 18:59:06 +00:00
configure enderpearls being slowed down by water
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/entity/projectile/ThrownEnderpearl.java
|
||||
+++ b/net/minecraft/world/entity/projectile/ThrownEnderpearl.java
|
||||
@@ -39,6 +_,15 @@
|
||||
@@ -39,6 +_,21 @@
|
||||
super(EntityType.ENDER_PEARL, owner, level, item);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,12 @@
|
||||
+ : super.getClipType();
|
||||
+ }
|
||||
+ // Sakura end - enderpearls use outline for collision
|
||||
+ // Sakura start - configure enderpearls being slowed down by water
|
||||
+ @Override
|
||||
+ public final boolean isInWater() {
|
||||
+ return super.isInWater() && this.level().sakuraConfig().entity.enderPearl.slowedDownByWater;
|
||||
+ }
|
||||
+ // Sakura end - configure enderpearls being slowed down by water
|
||||
+
|
||||
@Override
|
||||
public Item getDefaultItem() {
|
||||
|
||||
@@ -229,6 +229,7 @@ public final class WorldConfiguration extends ConfigurationPart {
|
||||
public class EnderPearl extends ConfigurationPart {
|
||||
public boolean useOutlineForCollision = false;
|
||||
public boolean preventTeleportingInsideBlocks = false;
|
||||
public boolean slowedDownByWater = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user