mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
fix: correct issues with same-server RTP validation
This commit is contained in:
6 files changed
+56
-20
No files matched your search
+2
-2
@@ -49,7 +49,7 @@ public class MessageSerializationTests {
|
||||
.target("TestTarget", Message.TargetType.PLAYER)
|
||||
.payload(Payload.position(
|
||||
Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
World.from("TestWorld"), "TestServer")))
|
||||
.build(),
|
||||
Message.builder()
|
||||
.type(Message.MessageType.TELEPORT_TO_NETWORKED_USER)
|
||||
@@ -61,7 +61,7 @@ public class MessageSerializationTests {
|
||||
.target("TestTarget", Message.TargetType.PLAYER)
|
||||
.payload(Payload.position(
|
||||
Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
World.from("TestWorld"), "TestServer")))
|
||||
.build()
|
||||
);
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ public class SavedPositionTests {
|
||||
@NotNull
|
||||
private static Stream<Arguments> provideWarpData() {
|
||||
final Position position = Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer");
|
||||
World.from("TestWorld"), "TestServer");
|
||||
return POSITION_UNSAFE_NAMES.entrySet().stream()
|
||||
.map(entry -> Arguments.of(
|
||||
Warp.from(position, PositionMeta.create(entry.getKey(), "")),
|
||||
@@ -93,7 +93,7 @@ public class SavedPositionTests {
|
||||
@NotNull
|
||||
private static Stream<Arguments> provideHomeData() {
|
||||
final Position position = Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer");
|
||||
World.from("TestWorld"), "TestServer");
|
||||
return POSITION_UNSAFE_NAMES.entrySet().stream()
|
||||
.map(entry -> Arguments.of(
|
||||
Home.from(
|
||||
|
||||
@@ -105,7 +105,7 @@ public class NormalDistributionTests {
|
||||
final List<Location> locations = new ArrayList<>();
|
||||
for (int i = 0; i < amount; i++) {
|
||||
locations.add(NormalDistributionEngine.generateLocation(
|
||||
Location.at(0, 0, 0, 0, 0, World.from("TestWorld", UUID.randomUUID())),
|
||||
Location.at(0, 0, 0, 0, 0, World.from("TestWorld")),
|
||||
MEAN, STANDARD_DEVIATION, SPAWN_RADIUS, MAX_RADIUS));
|
||||
}
|
||||
return locations;
|
||||
|
||||
Reference in new issue
Block a user