2020-05-06 17:48:49 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-12-17 06:03:56 +08: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
|
|
|
|
|
|
|
|
|
2021-03-16 15:19:45 +08:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/projectile/EntityFishingHook.java b/src/main/java/net/minecraft/world/entity/projectile/EntityFishingHook.java
|
|
|
|
index bcc411107d531529dbce9d1d43896a3c70e63012..57e7b9c7f7f43666d442648120cda3b4b3e5bfb2 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/EntityFishingHook.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/EntityFishingHook.java
|
|
|
|
@@ -240,6 +240,11 @@ public class EntityFishingHook extends IProjectile {
|
2019-04-27 14:26:04 +08:00
|
|
|
|
|
|
|
this.setMot(this.getMot().a(0.92D));
|
2020-11-03 10:22:15 +08:00
|
|
|
this.af();
|
2016-12-17 06:03:56 +08:00
|
|
|
+ // Paper start - These shouldn't be going through portals
|
2020-08-02 13:39:36 +08:00
|
|
|
+ if (this.inPortal) {
|
2016-12-17 06:03:56 +08:00
|
|
|
+ this.die();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|