geforkt von Mirrors/Paper
SPIGOT-2765: Add different reasons for HangingBreakByEntityEvent
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
63312e6e8a
Commit
6b2a91f2a4
@ -10,7 +10,11 @@ public class HangingBreakByEntityEvent extends HangingBreakEvent {
|
||||
private 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;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren