diff --git a/README.md b/README.md index 02cc8a48..9a6f53e9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A Bukkit server implementation utilizing Mixin. | Minecraft | Forge | Status | Build | | :----: | :----: | :---: | :---: | -| 1.16.x | 35.1.0 | ACTIVE | [![1.16 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-16?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-16) | +| 1.16.x | 35.1.4 | ACTIVE | [![1.16 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-16?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-16) | | 1.15.x | 31.2.45 | ACTIVE | [![1.15 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-15?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-15) | | 1.14.x | 28.2.0 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.0.6) | [![1.14 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight) | diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mod/server/entity/ArclightFakePlayer.java b/arclight-common/src/main/java/io/izzel/arclight/common/mod/server/entity/ArclightFakePlayer.java index 8032c0a3..bf85b8d0 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mod/server/entity/ArclightFakePlayer.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mod/server/entity/ArclightFakePlayer.java @@ -1,5 +1,6 @@ package io.izzel.arclight.common.mod.server.entity; +import com.mojang.authlib.GameProfile; import net.minecraft.entity.player.ServerPlayerEntity; import org.bukkit.craftbukkit.v.CraftServer; import org.bukkit.craftbukkit.v.entity.CraftPlayer; @@ -12,7 +13,8 @@ public class ArclightFakePlayer extends CraftPlayer { @Override public boolean isOp() { - return this.getHandle().getGameProfile().getId() != null && super.isOp(); + GameProfile profile = this.getHandle().getGameProfile(); + return profile != null && profile.getId() != null && super.isOp(); } @Override