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-01-29 01:32:08 +01:00
|
|
|
index 07808a111047934d8ca10c45b7e702f7a7115788..a9a409eebabae11ab84cf9bcced1f9a030b4a479 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-01-29 01:32:08 +01:00
|
|
|
@@ -990,6 +990,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;
|
|
|
|
}
|