mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
be13705177
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: 6b8cd9a7 SPIGOT-6207: forcibly drop the items of a converted zombie villager
20 lines
1.1 KiB
Diff
20 lines
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/BlockPressurePlateBinary.java b/src/main/java/net/minecraft/world/level/block/BlockPressurePlateBinary.java
|
|
index 4c4c8b23c39d26c646b1950023a20446ac798c6f..fba720bf2349a69d0f93642eea4e77063f83380c 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/BlockPressurePlateBinary.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/BlockPressurePlateBinary.java
|
|
@@ -82,6 +82,7 @@ public class BlockPressurePlateBinary extends BlockPressurePlateAbstract {
|
|
|
|
while (iterator.hasNext()) {
|
|
Entity entity = (Entity) iterator.next();
|
|
+ if (entity.isIgnoreBlockTrigger()) continue; // Paper - don't call event for ignored entities
|
|
|
|
// CraftBukkit start - Call interact event when turning on a pressure plate
|
|
if (this.getPower(world.getType(blockposition)) == 0) {
|