23 Zeilen
994 B
Diff
23 Zeilen
994 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
Date: Fri, 16 Dec 2016 16:03:19 -0600
|
|
Subject: [PATCH] Don't let fishinghooks use portals
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
index 2f67c2065ef29f17f12190b25bd1ea53e1fb55b4..fa078167dd9e0cae80516549eef0e554c13938a3 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
@@ -237,6 +237,11 @@ public class FishingHook extends Projectile {
|
|
|
|
this.setDeltaMovement(this.getDeltaMovement().scale(0.92D));
|
|
this.reapplyPosition();
|
|
+ // Paper start - These shouldn't be going through portals
|
|
+ if (this.isInsidePortal) {
|
|
+ this.remove();
|
|
+ }
|
|
+ // Paper end
|
|
}
|
|
}
|
|
|