Skip to content

Commit

Permalink
Fixed events
Browse files Browse the repository at this point in the history
  • Loading branch information
Majrusz committed Aug 28, 2022
1 parent 1d6c48a commit bce214d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static class Data extends ContextData.Event< AnimalTameEvent > {
public final Player tamer;

public Data( AnimalTameEvent event ) {
super( event.getAnimal(), event );
super( event.getTamer(), event );
this.animal = event.getAnimal();
this.tamer = event.getTamer();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static class Data extends ContextData.Event< BabyEntitySpawnEvent > {
public final Player player;

public Data( BabyEntitySpawnEvent event ) {
super( event.getChild(), event );
super( event.getCausedByPlayer(), event );
this.child = event.getChild();
this.parentA = event.getParentA();
this.parentB = event.getParentB();
Expand Down

0 comments on commit bce214d

Please sign in to comment.