9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-23 08:49:25 +00:00

It compiles

This commit is contained in:
Samsuik
2025-01-17 11:47:26 +00:00
parent ca83d33506
commit 1a4ad041b5
12 changed files with 63 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -116,6 +_,18 @@
throw new AssertionError("Unknown entity " + (entity == null ? null : entity.getClass()));
@@ -90,6 +_,18 @@
this.entityType = CraftEntityType.minecraftToBukkit(entity.getType());
}
+ // Sakura start - entity pushed by fluid api
@@ -16,6 +16,6 @@
+ }
+ // Sakura end - entity pushed by fluid api
+
@Override
public Location getLocation() {
return CraftLocation.toBukkit(this.entity.position(), this.getWorld(), this.entity.getBukkitYaw(), this.entity.getXRot());
public static <T extends Entity> CraftEntity getEntity(CraftServer server, T entity) {
Preconditions.checkArgument(entity != null, "Unknown entity");

View File

@@ -1,7 +1,7 @@
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -3003,6 +_,18 @@
return (this.getHandle().requestedViewDistance() == 0) ? Bukkit.getViewDistance() : this.getHandle().requestedViewDistance();
@@ -226,6 +_,18 @@
this.firstPlayed = System.currentTimeMillis();
}
+ // Sakura start - entity tracking range modifier
@@ -16,6 +16,6 @@
+ }
+ // Sakura end - entity tracking range modifier
+
// Paper start
@Override
public java.util.Locale locale() {
public GameProfile getProfile() {
return this.getHandle().getGameProfile();
}