2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-12-16 23:03:56 +01:00
|
|
|
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/server/EntityFishingHook.java b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
2020-11-03 03:22:15 +01:00
|
|
|
index 8724f293a2c4b56dc5f30c1377151edb425db63b..4a5f2617c7b35490980b341115e3df468ab3a544 100644
|
2016-12-16 23:03:56 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityFishingHook.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
2020-08-25 04:22:08 +02:00
|
|
|
@@ -191,6 +191,11 @@ public class EntityFishingHook extends IProjectile {
|
2019-04-27 08:26:04 +02:00
|
|
|
|
|
|
|
this.setMot(this.getMot().a(0.92D));
|
2020-11-03 03:22:15 +01:00
|
|
|
this.af();
|
2016-12-16 23:03:56 +01:00
|
|
|
+ // Paper start - These shouldn't be going through portals
|
2020-08-02 07:39:36 +02:00
|
|
|
+ if (this.inPortal) {
|
2016-12-16 23:03:56 +01:00
|
|
|
+ this.die();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|