mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
22 lines
1,001 B
Diff
22 lines
1,001 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <1254957+zachbr@users.noreply.github.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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
@@ -0,0 +0,0 @@ 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.discard();
|
|
+ }
|
|
+ // Paper end
|
|
}
|
|
}
|
|
|