9147456fc9
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing CraftBukkit Changes: ab8ace685 SPIGOT-7236: Bone meal doesn't increase use statistic 7dcb59b8e Avoid switch on material in previous commit Spigot Changes: 19641c75 SPIGOT-7235: World.Spigot#strikeLightningEffect doesn't do anything
20 Zeilen
1.1 KiB
Diff
20 Zeilen
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Trigary <trigary0@gmail.com>
|
|
Date: Tue, 2 Feb 2021 09:17:59 +0100
|
|
Subject: [PATCH] stop firing pressure plate EntityInteractEvent for ignored
|
|
entities
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java b/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java
|
|
index f2fad4c349e6b484c76886ae1cf6315b6fadd446..11507b85216b528d02bdb95ec1fa13a1ca8d3643 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java
|
|
@@ -74,6 +74,7 @@ public class PressurePlateBlock extends BasePressurePlateBlock {
|
|
|
|
while (iterator.hasNext()) {
|
|
Entity entity = (Entity) iterator.next();
|
|
+ if (entity.isIgnoringBlockTriggers()) continue; // Paper - don't call event for ignored entities
|
|
|
|
// CraftBukkit start - Call interact event when turning on a pressure plate
|
|
if (this.getSignalForState(world.getBlockState(pos)) == 0) {
|