2021-01-24 17:57:16 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Yive <admin@yive.me>
|
|
|
|
Date: Sun, 24 Jan 2021 08:55:19 -0800
|
|
|
|
Subject: [PATCH] Reset shield blocking on dimension change
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2021-02-21 20:45:33 +01:00
|
|
|
index 3f480b6a419403536d87194525a82c5d3745963a..17f6031558d98182c32b3df3fb60daf528d5e684 100644
|
2021-01-24 17:57:16 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2021-02-21 20:45:33 +01:00
|
|
|
@@ -987,6 +987,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
2021-01-24 17:57:16 +01:00
|
|
|
this.world.getServer().getPluginManager().callEvent(changeEvent);
|
|
|
|
// CraftBukkit end
|
|
|
|
}
|
|
|
|
+ // Paper start
|
|
|
|
+ if (this.isBlocking()) {
|
|
|
|
+ this.clearActiveItem();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|