aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0645-Missing-Entity-Behavior-API.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-03-14 16:10:18 -0700
committerJake Potrebic <[email protected]>2023-03-14 16:10:18 -0700
commit0f17027652f644b88ccffb2f69d48ba43f93ed22 (patch)
tree727e991f53ed43ee66100eeab732d6136ee2608b /patches/server/0645-Missing-Entity-Behavior-API.patch
parent72923817d65cca649fb7c63a2872a94d93f6a7c1 (diff)
downloadPaper-0f17027652f644b88ccffb2f69d48ba43f93ed22.tar.gz
Paper-0f17027652f644b88ccffb2f69d48ba43f93ed22.zip
fix more compile errors
Diffstat (limited to 'patches/server/0645-Missing-Entity-Behavior-API.patch')
-rw-r--r--patches/server/0645-Missing-Entity-Behavior-API.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0645-Missing-Entity-Behavior-API.patch b/patches/server/0645-Missing-Entity-Behavior-API.patch
index 15bc3e06bd..70a5c02b12 100644
--- a/patches/server/0645-Missing-Entity-Behavior-API.patch
+++ b/patches/server/0645-Missing-Entity-Behavior-API.patch
@@ -764,7 +764,7 @@ index 5500d5768bb22f70b99aa28cf4541b4871e12139..4d7a2c4c1001aefe9fcd4be8dbcb414f
+ // Paper end
}
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartHopper.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartHopper.java
-index ee9648739fb39c5842063d7442df6eb5c9336d7f..569763b3c9e92a4071884f139fb1263201f80e43 100644
+index ee9648739fb39c5842063d7442df6eb5c9336d7f..67fe56cc4c2af24f6bd883c6e14851019b0b9523 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartHopper.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartHopper.java
@@ -39,4 +39,20 @@ public final class CraftMinecartHopper extends CraftMinecartContainer implements
@@ -779,12 +779,12 @@ index ee9648739fb39c5842063d7442df6eb5c9336d7f..569763b3c9e92a4071884f139fb12632
+
+ @Override
+ public int getPickupCooldown() {
-+ return this.getHandle().cooldownTime;
++ throw new UnsupportedOperationException("Hopper minecarts don't have cooldowns");
+ }
+
+ @Override
+ public void setPickupCooldown(int cooldown) {
-+ this.getHandle().setCooldown(cooldown);
++ throw new UnsupportedOperationException("Hopper minecarts don't have cooldowns");
+ }
+ // Paper end
}