2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-12-16 22:03:56 +00: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 07:19:45 +00: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
|
2021-06-11 06:29:15 +00:00
|
|
|
index 7402e3b305d9bb7b27b97ff2078c26dd578232a1..2067af9b13c7ce28cd8ad6c785e2d0a7ff013430 100644
|
2021-03-16 07:19:45 +00:00
|
|
|
--- 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 06:26:04 +00:00
|
|
|
|
|
|
|
this.setMot(this.getMot().a(0.92D));
|
2020-11-03 02:22:15 +00:00
|
|
|
this.af();
|
2016-12-16 22:03:56 +00:00
|
|
|
+ // Paper start - These shouldn't be going through portals
|
2020-08-02 05:39:36 +00:00
|
|
|
+ if (this.inPortal) {
|
2016-12-16 22:03:56 +00:00
|
|
|
+ this.die();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|