public override void HandleEntityAction(net.minecraft.src.Packet19EntityAction packet19entityaction) { if (this.playerEntity.isDead) { return; // CRAFTBUKKIT } //TODO: Hook ToogleSneak if (packet19entityaction.state == 1) { playerEntity.SetSneaking(true); } else if (packet19entityaction.state == 2) { playerEntity.SetSneaking(false); } else if (packet19entityaction.state == 3) { //TODO: Craftbukkit -- Can't leave bed if not in one! (???) playerEntity.WakeUpPlayer(false, true, true); hasMoved = false; } }
public virtual void HandleEntityAction(net.minecraft.src.Packet19EntityAction packet19entityaction) { RegisterPacket(packet19entityaction); }