mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix velocity sameWorldAs
This commit is contained in:
1 parent
cdb9d618f9
commit
88f020f82d
1 file changed
+4
-2
@@ -80,8 +80,10 @@ public final class CarbonPlayerVelocity extends WrappedCarbonPlayer implements F
|
||||
return false;
|
||||
}
|
||||
|
||||
final var playerServer = player.get().getCurrentServer();
|
||||
return playerServer.isPresent() && playerServer.equals(otherPlayer.get().getCurrentServer());
|
||||
final var playerServer = player.get().getCurrentServer().get();
|
||||
final var otherServer = otherPlayer.get().getCurrentServer().get();
|
||||
|
||||
return playerServer.getServer().equals(otherServer.getServer());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user