Move invisible setting up to entities (#10346)

This commit is contained in:
FireInstall
2024-03-23 20:27:30 +01:00
parent 5efed01031
commit 0c76cbb7cc
7 changed files with 95 additions and 10 deletions

View File

@@ -26,9 +26,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -0,0 +0,0 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return getHandle().isInPowderSnow || getHandle().wasInPowderSnow; // depending on the location in the entity "tick" either could be needed.
this.getHandle().setSharedFlag(Entity.FLAG_INVISIBLE, invisible);
}
// Paper end
// Paper end - move up invisibility
+
+ // Paper start - Collision API
+ @Override
+ public boolean collidesAt(@org.jetbrains.annotations.NotNull Location location) {