mojira.dev
MC-46411

Spectator Mode Remaining in Mob and "Attempting to attack an invalid entity"

When in Spectator Mode,going into an entity,then changing to Survival Mode,you still remain in the entity but hostile mobs attack you.Also attacking an entity crashes the world,giving the following reason:
"Connection Lost"
"Attempting to attack an invalid entity"

Related issues

Comments

migrated

I can confirm, also there is no stack trace or console message.

migrated

MC 1.11.2, What was causing this or how to reproduce it i cant say, but ive noticed various users now reporting having issues an when looking on console an through logs, im seeing various messages related to this.

[23:15:24] [Server thread/INFO]: X7Y lost connection: TextComponent{text='Attempting to attack an invalid entity', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}

migrated

(Unassigned)

Unconfirmed

attack, entity, leave, mob, spectating

Minecraft 14w05a

Minecraft 14w06b

Retrieved