geforkt von Mirrors/Paper
19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
32 Zeilen
946 B
Diff
32 Zeilen
946 B
Diff
From 6f2d10b520824fb018ee8d27022b0e47f9fc5c4c Mon Sep 17 00:00:00 2001
|
|
From: md_5 <md_5@live.com.au>
|
|
Date: Sun, 2 Jun 2013 15:16:05 +1000
|
|
Subject: [PATCH] Implement Arrow API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
index bf48e6e..ad489cc 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArrow.java
|
|
@@ -75,6 +75,17 @@ public class CraftArrow extends AbstractProjectile implements Arrow {
|
|
// Spigot start
|
|
private final Arrow.Spigot spigot = new Arrow.Spigot()
|
|
{
|
|
+ @Override
|
|
+ public double getDamage()
|
|
+ {
|
|
+ return getHandle().j();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setDamage(double damage)
|
|
+ {
|
|
+ getHandle().b( damage );
|
|
+ }
|
|
};
|
|
|
|
public Arrow.Spigot spigot()
|
|
--
|
|
2.1.0
|
|
|