Fix handling of changes to PlayerVelocityEvent.velocity by event callers.
By: Antony Riley <antony@cyberiantiger.org>
This commit is contained in:
@@ -315,7 +315,7 @@
|
||||
+ if (event.isCancelled()) {
|
||||
+ cancelled = true;
|
||||
+ } else if (!velocity.equals(event.getVelocity())) {
|
||||
+ player.setVelocity(velocity);
|
||||
+ player.setVelocity(event.getVelocity());
|
||||
+ }
|
||||
+
|
||||
+ if (!cancelled) {
|
||||
|
||||
Reference in New Issue
Block a user