mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-23 08:49:25 +00:00
It compiles
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user