mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Updated EntityTeleportEvent in line with deprecation cleanup.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ public class EntityTeleportEvent extends EntityEvent implements Cancellable {
|
||||
private Location to;
|
||||
|
||||
public EntityTeleportEvent(Entity what, Location from, Location to) {
|
||||
super(Type.ENTITY_TELEPORT, what);
|
||||
super(what);
|
||||
this.from = from;
|
||||
this.to = to;
|
||||
this.cancel = false;
|
||||
|
Reference in New Issue
Block a user