Skip to content

Commit

Permalink
Fix tests breaking after paper update
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jan 24, 2024
1 parent 5a19ce7 commit 66fc37d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class EntityTrackingTests: MockedServerTest() {
val pig = world.spawn(world.spawnLocation, Pig::class.java)

// act
EntityAddToWorldEvent(pig).callEvent() // Not called by MockBukkit
EntityAddToWorldEvent(pig, world).callEvent() // Not called by MockBukkit

// assert
val gearyPig = pig.toGearyOrNull().shouldNotBeNull()
Expand Down Expand Up @@ -105,7 +105,7 @@ class EntityTrackingTests: MockedServerTest() {
@Test
fun `should persist components on entities when chunk unloaded`() {
val pig = world.spawn(world.spawnLocation, Pig::class.java)
EntityAddToWorldEvent(pig).callEvent()
EntityAddToWorldEvent(pig, world).callEvent()

testPersistence(
pig.toGeary(),
Expand Down

0 comments on commit 66fc37d

Please sign in to comment.