Skip to content

Commit 4b5369c

Browse files
committed
fix fakeplayer???
1 parent 7b346e7 commit 4b5369c

File tree

1 file changed

+7
-3
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/combat

1 file changed

+7
-3
lines changed

common/src/main/kotlin/com/lambda/module/modules/combat/FakePlayer.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ object FakePlayer : Module(
2020
init {
2121
onEnable {
2222
fakePlayer = OtherClientPlayerEntity(world, GameProfile(uuid, playerName))
23-
.apply(player::copyFrom)
24-
.apply(world::addEntity)
25-
.apply { id = -2024-4-20 }
23+
.apply {
24+
copyFrom(player)
25+
26+
id = -2024-4-20
27+
}
28+
29+
world.addEntity(fakePlayer)
2630
}
2731

2832
onDisable {

0 commit comments

Comments
 (0)