b94a99b033
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: 90a4d64a Remove usage of Java 11 method not caught by animal sniffer c51c0f7f SPIGOT-6483: Fix cancelling EntityPickupEvent for villagers
27 Zeilen
1.4 KiB
Diff
27 Zeilen
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
|
Date: Wed, 26 May 2021 17:09:07 -0400
|
|
Subject: [PATCH] Add BellRevealRaiderEvent
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/TileEntityBell.java b/src/main/java/net/minecraft/world/level/block/entity/TileEntityBell.java
|
|
index 84f9f52c5b632621b509448ac1c760f64de6b062..83626417aa9a00096680851a9a14f52f84fc7887 100644
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/TileEntityBell.java
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/TileEntityBell.java
|
|
@@ -6,6 +6,7 @@ import net.minecraft.core.BlockPosition;
|
|
import net.minecraft.core.EnumDirection;
|
|
import net.minecraft.core.IPosition;
|
|
import net.minecraft.core.particles.Particles;
|
|
+import net.minecraft.server.MCUtil;
|
|
import net.minecraft.sounds.SoundCategory;
|
|
import net.minecraft.sounds.SoundEffects;
|
|
import net.minecraft.tags.Tag;
|
|
@@ -181,6 +182,7 @@ public class TileEntityBell extends TileEntity implements ITickable {
|
|
}
|
|
|
|
private void b(EntityLiving entityliving) {
|
|
+ if (!new io.papermc.paper.event.block.BellRevealRaiderEvent(world.getWorld().getBlockAt(MCUtil.toLocation(world, position)), entityliving.getBukkitEntity()).callEvent()) return; // Paper - BellRevealRaiderEvent
|
|
entityliving.addEffect(new MobEffect(MobEffects.GLOWING, 60));
|
|
}
|
|
}
|