Skip to content

Commit a5231a4

Browse files
committed
0.1.1
1 parent aab9f3f commit a5231a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/cn/zbx1425/projectme/entity/EntityProjection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import java.util.concurrent.CompletableFuture;
2525

2626
public class EntityProjection extends LivingEntity {
27+
private static final CompletableFuture<Optional<GameProfile>> EMPTY_GAME_PROFILE = CompletableFuture.completedFuture(Optional.empty());
2728

28-
@OnlyIn(Dist.CLIENT)
29-
public CompletableFuture<Optional<GameProfile>> gameProfile = CompletableFuture.completedFuture(Optional.empty());
29+
public CompletableFuture<Optional<GameProfile>> gameProfile = EMPTY_GAME_PROFILE;
3030

3131
public EntityProjection(EntityType<? extends LivingEntity> entityType, Level level) {
3232
super(entityType, level);

0 commit comments

Comments
 (0)