diff --git a/patches/api/0469-Added-EntityDamageDoorEvent-and-implemented-into-Ser.patch b/patches/api/0469-Added-EntityDamageDoorEvent-and-implemented-into-Ser.patch index 87422057ecc6b..8499dfa3aa1d6 100644 --- a/patches/api/0469-Added-EntityDamageDoorEvent-and-implemented-into-Ser.patch +++ b/patches/api/0469-Added-EntityDamageDoorEvent-and-implemented-into-Ser.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Added EntityDamageDoorEvent and implemented into Server. diff --git a/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java b/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f27903887525581 +index 0000000000000000000000000000000000000000..f5a7ce750af255b89f8cefab07476fd6c3ec40ad --- /dev/null +++ b/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java @@ -0,0 +1,125 @@ @@ -33,15 +33,15 @@ index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f279038 + private boolean cancelled; + private int breakTime; + private final int doorBreakTime; -+ private boolean playEffect; ++ private boolean playsEffect; + + @ApiStatus.Internal -+ public EntityDamageDoorEvent(final @NotNull Entity what, final @NotNull BlockData damagedDoor, final int breakTime, final int doorBreakTime, boolean playEffect) { ++ public EntityDamageDoorEvent(final @NotNull Entity what, final @NotNull BlockData damagedDoor, final int breakTime, final int doorBreakTime, boolean playsEffect) { + super(what); + this.damagedDoor = damagedDoor; + this.breakTime = breakTime; + this.doorBreakTime = doorBreakTime; -+ this.playEffect = playEffect; ++ this.playsEffect = playsEffect; + } + + /** @@ -97,17 +97,17 @@ index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f279038 + * @return will play effect + */ + public boolean playsEffect() { -+ return this.playEffect; ++ return this.playsEffect; + } + + /** + * Sets if this should play an effect when damaging the door. + * This includes the sound, and arm swing (if the entity isn't currently swinging) + * -+ * @param playEffects will play effect ++ * @param playsEffect will play effect + */ -+ public void playsEffect(final boolean playEffects) { -+ this.playEffect = playEffects; ++ public void playsEffect(final boolean playsEffect) { ++ this.playsEffect = playsEffect; + } + + @Override