@@ -32,7 +32,7 @@ import { massToEnergy } from "../src/utils/EnergyUtils.sol";
32
32
import { ObjectTypeId } from "../src/ObjectTypeId.sol " ;
33
33
import { ObjectTypes } from "../src/ObjectTypes.sol " ;
34
34
import { ObjectTypeLib } from "../src/ObjectTypeLib.sol " ;
35
- import { CHUNK_SIZE, MAX_PLAYER_INFLUENCE_HALF_WIDTH, WORLD_BORDER_LOW_X, MAX_PLAYER_JUMPS, MAX_PLAYER_GLIDES, PLAYER_MOVE_ENERGY_COST, PLAYER_FALL_ENERGY_COST, PLAYER_FALL_DAMAGE_THRESHOLD } from "../src/Constants.sol " ;
35
+ import { CHUNK_SIZE, MAX_PLAYER_INFLUENCE_HALF_WIDTH, MAX_PLAYER_JUMPS, MAX_PLAYER_GLIDES, PLAYER_MOVE_ENERGY_COST, PLAYER_FALL_ENERGY_COST, PLAYER_FALL_DAMAGE_THRESHOLD } from "../src/Constants.sol " ;
36
36
import { Vec3, vec3 } from "../src/Vec3.sol " ;
37
37
import { TestUtils } from "./utils/TestUtils.sol " ;
38
38
@@ -459,7 +459,7 @@ contract MoveTest is BiomesTest {
459
459
}
460
460
461
461
function testMoveFailsIfInvalidCoord () public {
462
- (address alice , EntityId aliceEntityId , Vec3 playerCoord ) = setupAirChunkWithPlayer ();
462
+ (address alice , , Vec3 playerCoord ) = setupAirChunkWithPlayer ();
463
463
464
464
Vec3[] memory newCoords = new Vec3 [](2 );
465
465
newCoords[0 ] = playerCoord + vec3 (0 , 0 , 1 );
@@ -473,12 +473,6 @@ contract MoveTest is BiomesTest {
473
473
vm.expectRevert ("New coord is too far from old coord " );
474
474
world.move (newCoords);
475
475
476
- newCoords[1 ] = vec3 (WORLD_BORDER_LOW_X - 1 , playerCoord.y (), playerCoord.z () + 2 ); // Can't use vector addition here due to WORLD_BORDER_LOW_X
477
-
478
- vm.prank (alice);
479
- vm.expectRevert ("Cannot move outside the world border " );
480
- world.move (newCoords);
481
-
482
476
newCoords[0 ] = playerCoord - vec3 (1 , 0 , 0 );
483
477
484
478
vm.prank (alice);
@@ -491,7 +485,7 @@ contract MoveTest is BiomesTest {
491
485
}
492
486
493
487
function testMoveFailsIfNoPlayer () public {
494
- (address alice , EntityId aliceEntityId , Vec3 playerCoord ) = setupAirChunkWithPlayer ();
488
+ (address alice , , Vec3 playerCoord ) = setupAirChunkWithPlayer ();
495
489
496
490
Vec3[] memory newCoords = new Vec3 [](2 );
497
491
newCoords[0 ] = playerCoord + vec3 (0 , 0 , 1 );
0 commit comments