mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
final var playerServer = player.get().getCurrentServer();
|
final var playerServer = player.get().getCurrentServer().get();
|
||||||
return playerServer.isPresent() && playerServer.equals(otherPlayer.get().getCurrentServer());
|
final var otherServer = otherPlayer.get().getCurrentServer().get();
|
||||||
|
|
||||||
|
return playerServer.getServer().equals(otherServer.getServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user