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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityFishingHook.java b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
2020-09-10 23:47:58 +00:00
|
|
|
index cd095cee4f162e5c47c04a68c66a4eb743d95a3f..7dde9774106b7bc1dac46ad591279343b863a9cc 100644
|
2016-12-16 22:03:56 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityFishingHook.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
2020-08-25 02:22:08 +00:00
|
|
|
@@ -191,6 +191,11 @@ public class EntityFishingHook extends IProjectile {
|
2019-04-27 06:26:04 +00:00
|
|
|
|
|
|
|
this.setMot(this.getMot().a(0.92D));
|
2020-08-25 02:22:08 +00:00
|
|
|
this.ae();
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|