mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:01:58 +01:00
SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
63312e6e8a
commit
6b2a91f2a4
@ -10,7 +10,11 @@ public class HangingBreakByEntityEvent extends HangingBreakEvent {
|
|||||||
private final Entity remover;
|
private final Entity remover;
|
||||||
|
|
||||||
public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover) {
|
public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover) {
|
||||||
super(hanging, HangingBreakEvent.RemoveCause.ENTITY);
|
this(hanging, remover, HangingBreakEvent.RemoveCause.ENTITY);
|
||||||
|
}
|
||||||
|
|
||||||
|
public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover, final HangingBreakEvent.RemoveCause cause) {
|
||||||
|
super(hanging, cause);
|
||||||
this.remover = remover;
|
this.remover = remover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user