We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c108894 commit 76d6c03Copy full SHA for 76d6c03
1 file changed
src/main/java/net/evmodder/evmod/mixin/MixinClientPlayNetworkHandler.java
@@ -35,7 +35,8 @@ abstract class MixinClientPlayNetworkHandler{
35
@Inject(method="onEntitySpawn", at=@At("HEAD"))
36
private final void onSpawn(final EntitySpawnS2CPacket packet, final CallbackInfo _ci){
37
// If the incoming entity is a player and matches your target's UUID
38
- if(packet.getEntityType() == EntityType.PLAYER && AccessorMain.getInstance().syncPlayerPos.removeFakePlayer(packet.getUuid())){
+ if(packet.getEntityType() == EntityType.PLAYER && AccessorMain.getInstance().syncPlayerPos != null &&
39
+ AccessorMain.getInstance().syncPlayerPos.removeFakePlayer(packet.getUuid())){
40
Main.LOGGER.info("[EvMod] Removed dummy player (real player spawned): "+packet.getUuid());
41
}
42
0 commit comments