aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0677-Entity-powdered-snow-API.patch
diff options
context:
space:
mode:
authorFireInstall <[email protected]>2024-03-23 20:27:30 +0100
committerGitHub <[email protected]>2024-03-23 20:27:30 +0100
commit9ec7dfcbc41c6e625de0050b6997160a75df9f44 (patch)
treeecfae4a17b8258b5ceb8fa4cb340e023b8031e8a /patches/server/0677-Entity-powdered-snow-API.patch
parent88419b207579533646ab011da886030ea9ea4862 (diff)
downloadPaper-9ec7dfcbc41c6e625de0050b6997160a75df9f44.tar.gz
Paper-9ec7dfcbc41c6e625de0050b6997160a75df9f44.zip
Move invisible setting up to entities (#10346)
Diffstat (limited to 'patches/server/0677-Entity-powdered-snow-API.patch')
-rw-r--r--patches/server/0677-Entity-powdered-snow-API.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/patches/server/0677-Entity-powdered-snow-API.patch b/patches/server/0677-Entity-powdered-snow-API.patch
index 9976726fc5..e06e388df9 100644
--- a/patches/server/0677-Entity-powdered-snow-API.patch
+++ b/patches/server/0677-Entity-powdered-snow-API.patch
@@ -7,10 +7,10 @@ Subject: [PATCH] Entity powdered snow API
public net.minecraft.world.entity.monster.Skeleton inPowderSnowTime
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-index 411e2eed16d5b774900fc12f5ad782ab229dde97..71f9b7bbbabae9291fdb9f902f3f69c13e715c0e 100644
+index 6a31fb773798e911e731c35e2d52eb1073ed9f07..6a8251ae85f192925493b3e084c0e53820a9be97 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-@@ -1087,5 +1087,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
+@@ -1087,6 +1087,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
this.entity.setRot(location.getYaw(), location.getPitch());
return !this.entity.valid && this.entity.level().addFreshEntity(this.entity, reason);
}
@@ -20,7 +20,8 @@ index 411e2eed16d5b774900fc12f5ad782ab229dde97..71f9b7bbbabae9291fdb9f902f3f69c1
+ return getHandle().isInPowderSnow || getHandle().wasInPowderSnow; // depending on the location in the entity "tick" either could be needed.
+ }
// Paper end
- }
+
+ // Paper start - move up invisibility
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeleton.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeleton.java
index a0ea54181de6c6685deef265cbe9f66aabbca42b..6f98da9be6aef35e3b5c940188b872459a383c8e 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftSkeleton.java