mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 10:06:16 +00:00
12 lines
979 B
Diff
12 lines
979 B
Diff
--- a/net/minecraft/world/item/enchantment/effects/ReplaceDisk.java
|
|
+++ b/net/minecraft/world/item/enchantment/effects/ReplaceDisk.java
|
|
@@ -37,7 +37,7 @@
|
|
|
|
if (blockposition1.distToCenterSqr(vec3d.x(), (double) blockposition1.getY() + 0.5D, vec3d.z()) < (double) MathHelper.square(j) && (Boolean) this.predicate.map((blockpredicate) -> {
|
|
return blockpredicate.test(worldserver, blockposition1);
|
|
- }).orElse(true) && worldserver.setBlockAndUpdate(blockposition1, this.blockState.getState(randomsource, blockposition1))) {
|
|
+ }).orElse(true) && org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(worldserver, blockposition1, this.blockState.getState(randomsource, blockposition1), entity)) { // CraftBukkit - Call EntityBlockFormEvent for Frost Walker
|
|
this.triggerGameEvent.ifPresent((holder) -> {
|
|
worldserver.gameEvent(entity, holder, blockposition1);
|
|
});
|