geforkt von Mirrors/Paper
aa52bf9e33
Mojang made some changes to priorities in 1.17 and it seems that these changes conflict with the changes made in this patch, which in some cases appears to cause excessive rescheduling of tasks. This, however, is not confirmed as such but seems to be the behavior that we're seeing to cause this issue, if mojang has adopted the changes we suggested, then a good chunk of this patch may be unneeded, but, this needs a much better look than I'm currently able to do
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 f12bf33aa8cc8043052aa1048087f61d9a6d4d52..ae5b052b80665bfba126f5ca5dcd78608cb27d48 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/PressurePlateBlock.java
|
|
@@ -81,6 +81,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) {
|