mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
fix player ridable underwater option
This commit is contained in:
5
TODO.md
5
TODO.md
@@ -1,7 +1,7 @@
|
||||
- [x] make Sniffer ridable
|
||||
- [x] give Sniffer entity attributes config
|
||||
- [x] fix ridables around water
|
||||
- [ ] test player ridable underwater
|
||||
- [x] test player ridable underwater
|
||||
- [ ] OPTIONAL: custom damage type instead of magic for scissors & stone cutter patch
|
||||
- [x] flip the boolean in the "display names from item forms of entities to entities" patch to keep feature parity with vanilla
|
||||
- [ ] uncomment if conditions when including Pufferfish
|
||||
@@ -18,4 +18,5 @@
|
||||
### once above is complete:
|
||||
- [ ] make announcement about changes
|
||||
- flipped defaults ("persistent-droppable-entity-display-names", "set-name-visible-when-placing-with-custom-name")
|
||||
- must disable `ridable-settings.use-dismounts-underwater-tag` for `<Mob>RidableInWater` options to work, updated default values to reflect `DismountsUnderwaterTag`.
|
||||
- must disable `ridable-settings.use-dismounts-underwater-tag` for `<Mob>RidableInWater` options to work, updated default values to reflect `DISMOUNTS_UNDERWATER` tag.
|
||||
- `gameplay-mechanics.player.ridable-in-water` completely ignores `DISMOUNTS_UNDERWATER` tag since you can't ride players in vanilla minecraft.
|
||||
|
||||
@@ -5,7 +5,7 @@ Subject: [PATCH] Player ridable in water option
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/player/Player.java b/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
index af882016364257f01a154b99783e96f5e932364f..8e088b2a9b10ca0f1188469a7dd360b209cdde87 100644
|
||||
index af882016364257f01a154b99783e96f5e932364f..61380231105bd7d139989b05789800e5f7b89106 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
@@ -2072,6 +2072,11 @@ public abstract class Player extends LivingEntity {
|
||||
@@ -14,14 +14,14 @@ index af882016364257f01a154b99783e96f5e932364f..8e088b2a9b10ca0f1188469a7dd360b2
|
||||
|
||||
+ @Override
|
||||
+ public boolean dismountsUnderwater() {
|
||||
+ return !this.level.purpurConfig.playerRidableInWater || super.dismountsUnderwater();
|
||||
+ return !level.purpurConfig.playerRidableInWater;
|
||||
+ }
|
||||
+
|
||||
public boolean setEntityOnShoulder(CompoundTag entityNbt) {
|
||||
if (!this.isPassenger() && this.onGround && !this.isInWater() && !this.isInPowderSnow) {
|
||||
if (this.getShoulderEntityLeft().isEmpty()) {
|
||||
diff --git a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
index 9642374fd97fc0dc55f668fb6d85d2258b7dd77d..e1f96fc7deec93fb7eea12a600630d603924469b 100644
|
||||
index 0a1b894dad87b73f28fe9b37e08abb7b95d3b040..cbf4c40bf7c7e6547554f8d9086be0d7d99b522f 100644
|
||||
--- a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
@@ -398,6 +398,7 @@ public class PurpurWorldConfig {
|
||||
|
||||
Reference in New Issue
Block a user