mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 20:31:37 +01:00
call the right damage event for conduit damages
This commit is contained in:
parent
a5b1875b2d
commit
56e3949c61
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
- if (blockEntity.destroyTarget != null) {
|
- if (blockEntity.destroyTarget != null) {
|
||||||
+ if (damageTarget && blockEntity.destroyTarget != null) { // CraftBukkit
|
+ if (damageTarget && blockEntity.destroyTarget != null) { // CraftBukkit
|
||||||
+ if (blockEntity.destroyTarget.hurtServer((net.minecraft.server.level.ServerLevel) level, level.damageSources().magic(), 4.0F)) // CraftBukkit
|
+ if (blockEntity.destroyTarget.hurtServer((net.minecraft.server.level.ServerLevel) level, level.damageSources().magic().directBlock(level, pos), 4.0F)) // CraftBukkit
|
||||||
level.playSound(
|
level.playSound(
|
||||||
null,
|
null,
|
||||||
blockEntity.destroyTarget.getX(),
|
blockEntity.destroyTarget.getX(),
|
||||||
|
Loading…
Reference in New Issue
Block a user