We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aab9f3f commit a5231a4Copy full SHA for a5231a4
1 file changed
src/main/java/cn/zbx1425/projectme/entity/EntityProjection.java
@@ -24,9 +24,9 @@
24
import java.util.concurrent.CompletableFuture;
25
26
public class EntityProjection extends LivingEntity {
27
+ private static final CompletableFuture<Optional<GameProfile>> EMPTY_GAME_PROFILE = CompletableFuture.completedFuture(Optional.empty());
28
- @OnlyIn(Dist.CLIENT)
29
- public CompletableFuture<Optional<GameProfile>> gameProfile = CompletableFuture.completedFuture(Optional.empty());
+ public CompletableFuture<Optional<GameProfile>> gameProfile = EMPTY_GAME_PROFILE;
30
31
public EntityProjection(EntityType<? extends LivingEntity> entityType, Level level) {
32
super(entityType, level);
0 commit comments